New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix result option highlighting for screenreaders #5413
fix result option highlighting for screenreaders #5413
Conversation
Hi there, Thanks for your contribution to Select2. This is something I'm definitely interested in seeing land in Select2 4, but unfortunately right now there appear to be some failing tests. It looks like those tests are failing because this is attempting to set the attribute for the search box within the results dropdown. Because Select2 works in both a single select mode (where the search is in the dropdown) and multiselect mode (where the search is in with the selection), we cannot rely on the location of the search. Or even on it existing, since it's possible to disable the search box. My suggestion to fix this issue would be to look into moving these calls into the Let me know if you have any questions or need any assistance. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, is there any progress or news here? It would be great if this were implemented :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Knock knock... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Two notes for why this hasn't been accepted yet:
If someone is willing to submit an alternate pull request, or update this one, that fixes one or both of those issues, I'll gladly re-review it. If not, the Stale bot will show up in 60 days and close this one out. |
Closing this off in favor of #5582, where this is implemented (among other things). |
Addresses #3735 and pull request #3821
Not very familiar with the codebase and didn't have much time. Hope this helps move the accessibility improvements in the right direction.
From what I can deduce from various examples
aria-activedescendent
should be updated to the id of the current highlighted result. Also,aria-activedescendent
is on theinput
in the examples.Examples: