ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-icon: not support decorative mode

Open GongRichard opened this issue 6 years ago • 7 comments

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: {...}

GongRichard avatar Oct 22 '20 07:10 GongRichard

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)?

fifoosid avatar Oct 27 '20 09:10 fifoosid

Hi @fifoosid

I use the ui5-icon as a standalone component.

  1. Go to https://github.wdf.sap.corp/pages/xweb/goalmanagementx/app.html?mock#/goal-list
  2. click 'Skip Tour' button
  3. click more actions button on the top right of Goal Card
  4. click 'Create Activity' button
  5. select a new satus 'low'

2020-10-27_17-40-37

GongRichard avatar Oct 27 '20 09:10 GongRichard

Internal reference: 4989

nnaydenow avatar Jan 12 '21 14:01 nnaydenow

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?

PetyaMarkovaBogdanova avatar Jan 25 '21 13:01 PetyaMarkovaBogdanova

Hi @PetyaMarkovaBogdanova ,

This accessibleName property should be wrong, I will remove it later.

Thanks, Richard

GongRichard avatar Feb 05 '21 08:02 GongRichard

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)

PetyaMarkovaBogdanova avatar Feb 09 '21 08:02 PetyaMarkovaBogdanova

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.

ilhan007 avatar Feb 17 '21 07:02 ilhan007