-
Notifications
You must be signed in to change notification settings - Fork 253
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-button: aria-labels not working for screen readers #1425
Comments
Hi @ee92 In the example you have provided the reason for the texts not to be read is because they have inline style If you wish to achieve this in your app and hide the texts as well you could add the following styles to your texts(or hide them from the viewport by any other way instead of position: absolute;
left: -99999px;
visibility: hidden; Best rergards, |
@fifoosid visible texts are not read either. You can try removing the |
@fifoosid I tried the fix you made for this but get an error. Check this comment I added to the PR: #1446 (comment) |
Both aria-label & aria-labelledby are supported now |
Part of #3107 BREAKING CHANGE: The support for ```aria-labelledby``` have been deprecated in favour of new attribute ```accessible-name-ref``` for the following components: - ComboBox (Requested by SF #1916) - DatePicker (Requested by SF #2107) - Input (Requested #1866) - List (Requested by SF #1886) - Rating Indicator - Select (Requested by SF #2107) - StepInput (Implemented as part of the initial implementation #2804) - TextArea (Requested by SF #2107) - WizardStep (Implemented as part of the initial implementation #2400) The ```aria-labelledby``` has been deprecated for the following component: - Button (Requested by SF #1425) The ```accessible-name``` has been deprecated for the following components: - Link (Requested by SF #2356) Both ```aria-labelledby``` and ```accessible-name``` have been deprecated for the following components: - Card (Requested by CBC #2127) - CheckBox (Requested by SF #2265)
Describe the bug
ui5-buttons with aria-label or aria-labelledby are being read out by their text content instead of the aria labels.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Adding aria-label or aria-labelledby attributes should conform to the w3c web content accessibility guidelines.
Screenshots
![Screen Shot 2020-04-03 at 9 10 47 AM](https://user-images.githubusercontent.com/24360164/78382912-66df4180-758c-11ea-8614-34cd890f3acd.png)
The text was updated successfully, but these errors were encountered: