Skip to content

Conversation

@jzempel
Copy link
Member

@jzempel jzempel commented Jul 18, 2023

Description

For select-only (isEditable={false}) combobox:

  • Adds preventDefault to avoid page scroll when pressing keyboard space
  • Attaches same ☝️ behavior to tags for isMultiselectable
  • Adds selection on enter/space

Detail

Reference https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/#kbd_label

Checklist

  • 🌐 demo is up-to-date (yarn start)
  • 💂‍♂️ includes new unit tests
  • ♿ tested for WCAG 2.1 AA compliance
  • 📝 tested in Chrome, Firefox, Safari, and Edge

@jzempel jzempel requested a review from a team as a code owner July 18, 2023 15:24
@coveralls
Copy link

Coverage Status

coverage: 95.671%. remained the same when pulling fe62023 on jzempel/combobox-keyboard into 66ec279 on main.

Copy link
Contributor

@geotrev geotrev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jzempel jzempel merged commit 4ff0afc into main Jul 18, 2023
@jzempel jzempel deleted the jzempel/combobox-keyboard branch July 18, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

6 participants