Visitar URL original
USWDS-Site - Bug: ComboBox · Issue #5161 · uswds/uswds · GitHub
Skip to content

USWDS-Site - Bug: ComboBox #5161

Closed

Description

@fpigeonjr

Describe the bug

Finding an Option from the Combobox List

  • Keyboard users (especially those using AT) expect to be able to type the same character to navigate through all options starting with the same letter (example: type “S” multiple times to move through “South Carolina” followed by “South Dakota”, etc.)
Finding_option_error.mp4

Selecting a Combobox Option

  • Combobox allows users to confirm a selection using either the ENTER key (which is good) or the TAB key (which is unexpected behavior).
  • Additionally, the SPACE key (often used to confirm selections) only scrolls down the Combobox list.
Space_input_error.mp4
Tab_Selection_Error2.mp4

Steps to reproduce the bug

Finding an Option from the Combobox List

  1. Turn on screen reader
  2. Keyboard navigation to the Combobox input
  3. Type a alphabetical letter to get to an item i.e. S for South Carolina
  4. Repeat typing the same letter
  5. FAIL

Selecting a Combobox Option via spacebar

  1. Turn on screen reader
  2. Keyboard navigation to the Combobox input
  3. Use arrow keys to navigate to an item
  4. Type spacebar to select the item
  5. FAIL

Selecting a Combobox Option via tab

  1. Turn on screen reader
  2. Keyboard navigation to the Combobox input
  3. Use arrow keys to navigate to an item
  4. Type tab to move focus from the field
  5. FAIL

Expected Behavior

Finding an Option from the Combobox List

Users working with AT expected to be able to type the same character to navigate through all options starting with the same letter (example: type “S” multiple times to move through “South Carolina” followed by “South Dakota”, etc.)

Selecting a Combobox Option or tab

  • Combobox allows users to confirm a selection using either the ENTER key (which is good) or the TAB key (which is unexpected behavior).
  • Additionally, the SPACE key (often used to confirm selections) only scrolls down the Combobox list.

Screenshots

No response

System setup

OS: MacOS: 12.6 Monterey
Browser: Safari 16.1 (17614.2.9.1.13, 17614)
Voiceover and keyboard

Additional context

On videos above, the green text indicates the keyboard inputs.
cc: @jonadecker @steveja11y

Code of Conduct

Activity

  1. added
    Needs: ConfirmationReported behavior needs validation. Remove after recording reproduction or investigation results.
    on Jan 30, 2023
  2. mahoneycm commented on Feb 10, 2023

    @mahoneycm
    Contributor

    Hello @fpigeonjr,

    Thank you for raising this issue!

    Selecting Combobox option via Tab and Spacebar

    We agree that keyboard behaviors should follow expected conventions. We'll look into correcting the space bar and tab selection errors you brought up!

    Finding an Option from the Combobox List

    For combobox keyboard interaction, W3C ARIA Authoring Practices Guide states the following regarding printable characters:

    If the combobox is editable, type characters in the combobox. Note that some implementations may regard certain characters as invalid and prevent their input.

    If the combobox is not editable, optionally moves focus to a value that starts with the typed characters. 1

    Because this combobox is editable, it is standard convention that typed characters are entered into the input and not used to cycle through options.

    We'll get ready to work on the tab and spacebar issues you raised and link them back to this issue!

    Thanks again,
    Charlie

    Footnotes

    1. https://www.w3.org/WAI/ARIA/apg/patterns/combobox/#:~:text=Printable%20Characters%3A,the%20typed%20characters. ↩

  3. removed
    Needs: ConfirmationReported behavior needs validation. Remove after recording reproduction or investigation results.
    on Feb 10, 2023
  4. transferred this issue fromuswds/uswds-siteon Feb 21, 2023
  5. moved this from Review to Fed Final Review in USWDS Core Project Dataon Mar 1, 2023
  6. added this to the uswds 3.5.0 milestone on Mar 16, 2023
  7. added
    Package: Combo BoxWork affecting Combo Box. Apply only when this area helps route or find the issue.
    on Apr 14, 2023
  8. added a commit that references this issue on May 10, 2023
    b854664
  9. moved this from Fed Final Review to Done in USWDS Core Project Dataon May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Package: Combo BoxWork affecting Combo Box. Apply only when this area helps route or find the issue.

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions