Accessibility

  • Filter: a <button type="button"> with aria-pressed; the set sits in role="group" with a name, "Filter tasks". The check is aria-hidden; aria-pressed tells the state.
  • Assist: a <button> named by its label.
  • Input: the chip is not a control, its remove button is, named after the value: "Remove Supplies". After a removal, move focus to the next remove button, or to the field when none is left.
  • Tab reaches each button; Enter and Space press it.
  • Targets: the 32px chip meets the web minimum and the 24px remove button the WCAG 2.2 AA minimum; neither reaches the 48px phone target.
  • Contrast, light / dark: ink on paper 16.7 / 15.9:1; the outline border on paper 3.3 / 5.6:1 and on surface 3.5 / 5.1:1; on-ink on ink 16.7 / 15.9:1; the focus ring on paper 7.3 / 9.0:1.
  • Motion: only the state layer fades.