You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The on-page dropdown elements are not keyboard navigatable as they used to be in previous versions. See the screencast for details which shows the keys being pressed.
To Reproduce
Go to the front page
Navigate to the bottom of the page to see the language selector
Using keyboard navigation, place focus to the language dropdown selector
Open the selector either with ENTER or SPACE key
Try to navigate the options within the dropdown using the arrow keys
Expected behavior
The dropdown elements should be navigatable using arrow keys as the user would expect.
Also, when the dropdown is opened, the focus should be automatically placed to the first item of the dropdown.
See the legacy design for correct behavior of similar dropdown elements. E.g. the language dropdown at the top of the page (in legacy design).
The following is missing:
When the dropdown is opened, the focus should be placed into the first element of the dropdown
The user should be able to navigate through the dropdown options using arrow keys (UP and DOWN)
The user should be able to close the dropdown using the ESC key
Preferrably the TAB key should take the user to the next element in the DOM from the dropdown, not within its items
Note that this also does not work perfectly in the legacy design, see the W3 example implementation in the additional context section
When the dropdown loses focus, the dropdown should be closed automatically (e.g. when navigating to some other element or clicking with mouse outside of the dropdown)
The dropdown should contain the relevant ARIA attributes, see the W3 example implementation in the additional context section
Screenshots
Here is a screenshot showing the behavior in legacy design and redesign using arrow key navigation (keystrokes are visible on the screen):
Describe the bug
The on-page dropdown elements are not keyboard navigatable as they used to be in previous versions. See the screencast for details which shows the keys being pressed.
To Reproduce
ENTERorSPACEkeyExpected behavior
The dropdown elements should be navigatable using arrow keys as the user would expect.
Also, when the dropdown is opened, the focus should be automatically placed to the first item of the dropdown.
See the legacy design for correct behavior of similar dropdown elements. E.g. the language dropdown at the top of the page (in legacy design).
The following is missing:
UPandDOWN)ESCkeyTABkey should take the user to the next element in the DOM from the dropdown, not within its itemsScreenshots
Here is a screenshot showing the behavior in legacy design and redesign using arrow key navigation (keystrokes are visible on the screen):
decidim-dropdown-a11y.mp4
Stacktrace
No response
Extra data
Additional context
See W3 example implementation:
https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/