-
Notifications
You must be signed in to change notification settings - Fork 272
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-shellbar-item text not being added into the item #2880
Comments
Hello @lormanlau The "text" is displayed when the respective item overflows. e.g the text is visible only in the overflow popover If you still need to display the text even when the item is part of the bar (not overflowed), we will need a design approval, you will need to file a request to the Fiori 3 Visual Designers. I can provide the details offline. |
Hi @ilhan007, displaying the text is not necessary, but I do need a way to add screen reader support to ui5-shellbar-item. |
Would it be fine if we use the value of the "text" property to set it as aria-label? Or you need an API to define different texts? |
Yes that would be fine |
Hello @SAP/ui5-webcomponents-topic-p |
Hello @lormanlau, the correct way to make the ui5-shellbar-item (icon only button) accessible is to set the title attribute. This way you will have a visual tooltip, and the screen readers will read its value. https://codesandbox.io/s/admiring-stallman-0elji Kind Regards, |
Describe the bug
ui5-shellbar-item text property is not added into the ui5-button-text span. I am trying to add text so that screen readers can read out loud what the button is.
To reproduce
Steps to reproduce the behavior:
Isolated example
https://codesandbox.io/s/gracious-sinoussi-zngoi?file=/src/App.js
Expected behavior
Screenreaders to read the ui5-shellbar-item button text or ability to add aira-label
Screenshots
![Screen Shot 2021-02-26 at 9 51 14 AM](https://user-images.githubusercontent.com/12117112/109338455-27ac8580-781b-11eb-86a4-878034932167.png)
Context
Affected components (if known)
ui5-shellbar
ui5-shellbar-item
Log output / Any errors in the console
None
Organization: (if applicable)
SAP SuccessFactors
Priority: (optional) (Low, Medium, High or Very High)
Medium
Business impact: (mandatory for "Very High")
The text was updated successfully, but these errors were encountered: