Skip to content
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

[BUG] - Screen Reader Announcement Issue in Select Component Due to Multiple aria-labelledby References #4115

Open
kimskovhusandersen opened this issue Nov 19, 2024 · 1 comment
Labels
♿ Scope : Accessibility Related to accessibility 🐛 Type: Bug Something isn't working

Comments

@kimskovhusandersen
Copy link

NextUI Version

2.4.8

Describe the bug

In the Select component, the screen reader (VoiceOver) announces the label and value together in a confusing way, such as:
"Dog Select an animal, list box pop-up collapsed."

This occurs because the aria-labelledby attribute on the Select component’s button references multiple elements (react-aria2285256286-:r3p: and react-aria2285256286-:r3l:). As a result, the screen reader concatenates the text from these elements into a single, unclear announcement without proper separation.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Use the Select component in a screen reader-enabled environment.
  2. Open the dropdown and select an option.
  3. Observe the screen reader's announcement after selecting an option.

Expected behavior

The screen reader should announce the label and value distinctly, such as:
"Dog, Select an animal, list box pop-up collapsed."

Screenshots or Videos

Screen.Recording.2024-11-19.at.11.57.56.mov

Operating System Version

macOS

Browser

Chrome

@ryo-manba ryo-manba added 🐛 Type: Bug Something isn't working ♿ Scope : Accessibility Related to accessibility labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
♿ Scope : Accessibility Related to accessibility 🐛 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants