Accessibility implementation of the Dropdown component seems confusing #2693
Unanswered
iamkyrylo
asked this question in
PrimeReact
Replies: 1 comment 2 replies
-
@iamkyrylo PrimeTek tries to keep them all in sync and PrimeVue is usually out front can you check what PrimeVue Dropdown accessibility is? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current implementation is based on the following elements:
<select>
and<input>
with a list of options (<ul>
) bound by thearia-haspopup
attribute. The issue is that theselect
andinput
elements are not technically connected as one structure, and screen readers identify them as two unrelated elements. Yes, you pass theinputId
to bind the textbox with the label, but there is also an empty and unlabelled select. Then, after interacting with the textbox and choosing an option from the list, the previously empty select populates with one selected option, and input also gets the value🤷♂️As a developer, I also find this confusing. I can’t ensure that a particular combobox has a specific value. Instead, I can only verify that the document contains the selected option, without any direct reference to the combobox. Here’s an example of what I mean:
From my perspective, keeping the select element is redundant. The
Dropdown
component should inherit the accessibility implementation of theMultiSelect
component, using<input>
with the combobox role and value:Beta Was this translation helpful? Give feedback.
All reactions