Accessibility

  • role="dialog" with aria-modal="true" and aria-labelledby (the title).
  • Focus moves to the first control when it opens, stays inside while it is open, and returns to the control that opened it (Add something) when it closes.
  • Dragging is never the only way (WCAG 2.5.7): Close, Escape and the scrim close it too. The handle is decorative (aria-hidden); Close does its job for keyboards and screen readers.
  • The kind switch is a group named "Kind" (role="group"), with aria-pressed on each segment.
  • Targets are at least 48 px on phones.
  • Contrast: ink on surface is 17.4:1 in light and 14.4:1 in dark; field labels in ink-muted 6.7:1 and 8.1:1; the field border and the handle in outline 3.5:1 and 5.1:1 on surface; on-ink on ink 16.7:1 and 15.9:1.