ui5-icon: not support decorative mode
Describe the bug WC icon doesn't support decorative mode. For our cases, we don't want icon read out by screen reader.
Expected behavior For UI5 Icon, the default property decorative is true, so it will be skipped by screen reader. https://sapui5.hana.ondemand.com/#/api/sap.ui.core.Icon Please also implement this attribute for WC Icon.
Context
- UI5 Web Components version: 0.23.2
- OS/Platform: {...}
- Browser (if relevant): {...}
- Other information: {...}
Hi @GongRichard
Could you provide the specific use case that you have. Are you using the ui5-icon as a standalone component or do you use it inside other component(like button for example)?
Hi @fifoosid
I use the ui5-icon as a standalone component.
- Go to https://github.wdf.sap.corp/pages/xweb/goalmanagementx/app.html?mock#/goal-list
- click 'Skip Tour' button
- click more actions button on the top right of Goal Card
- click 'Create Activity' button
- select a new satus 'low'

Internal reference: 4989
Hi @GongRichard , the UI5-Icon component in the application is not interactive, in means that it is not focusable or tabbable by the screan reader. I managed to reproduce the extra speech on it with Virtual PC Cursor mode "on", because of the accessibleName property, which attaches the "aria-label" on the HTML element of the icon. Do you use this property for a specific reason?
Hi @PetyaMarkovaBogdanova ,
This accessibleName property should be wrong, I will remove it later.
Thanks, Richard
Hi @GongRichard, please let me know if you still experience some issue with an extra speech triggered by the ui5-icon.
Thank you! Petya Bogdanova. (UI5 Developer)
Hi @GongRichard I am closing the issue as a solution has been proposed. If you still face the issue, just comment below and we will reopen the issue.