-
Notifications
You must be signed in to change notification settings - Fork 273
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
ui5-select: [a11y] the aria-label of ui5-select is overridden by the aria-labelledby attribute #2142
Comments
Hello @zhangliangyi I think both the text of the selected item and the the labelled element would be read by the Screen Reader. Is it ok for you to get both texts read out or you expect to hear the labelled element only? BR, |
Hello @elenastoyanovaa What do you think about the following: if the ui5-select component is labelled by element (<ui5-select aria-labelledby="myLabel3"). Do you think that it is wrong if the screen reader announce the selected item as well (the labelled element "myLabel3" would be read afterwards).
|
@ilhan007 Thanks. |
Here is some documentation about the relationship between
So maybe this is the cause of my issue. |
Hello @zhangliangyi thanks for the info, I will prepare a change for that, leaving just one of the attributes. |
Hello, the issue is being worked on. |
- Role of the ui5-select is changed to combobox which change the speech output near to the default behavior. - The issue where role="button" can't be used with aria-required / required attribute is fixed. - Overwriting the aria-label speech output with aria-labelledby is fixed. Fixes: #2485 Fixes: #2339 Fixes: #2142
Hello @zhangliangyi, The internal aria-labelledby is removed when the role was changed to combobox, because it provides different accessibility behavior. |
- Role of the ui5-select is changed to combobox which change the speech output near to the default behavior. - The issue where role="button" can't be used with aria-required / required attribute is fixed. - Overwriting the aria-label speech output with aria-labelledby is fixed. Fixes: #2485 Fixes: #2339 Fixes: #2142
Describe the bug
When set the aria-labelledby attribute in ui5-select, the screen reader will not output the label defined instead of the text of selected option
To reproduce
Steps to reproduce the behavior:
Considering following case,
Expected behavior
The label of ui5-select should be output by screen reader
Screenshots
Please refer to the DOM structure in the screenshot
Context
Affected components (if known)
ui5-select
The text was updated successfully, but these errors were encountered: