SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.56k stars 267 forks source link

SF_ACC Axe reports issue for ui5-button 1.5.0 <svg> elements with an img role must have an alternative text #5505

Closed mydavidzhang closed 2 years ago

mydavidzhang commented 2 years ago

Bug Description

Axe reports issue for ui5-button " elements with an img role must have an alternative text" Element source NOTE: issue happens when button has only icon

Expected Behavior

No Axe issue

Steps to Reproduce

  1. Go to https://sap.github.io/ui5-webcomponents/playground/components/Button/
  2. run Axe plugin
  3. See issue " elements with an img role must have an alternative text"

Isolated Example

https://sap.github.io/ui5-webcomponents/playground/components/Button/

Context

Log Output / Stack Trace / Screenshots

Screen Shot 2022-07-13 at 5 44 00 PM

Priority

The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:

Note: The priority might be re-evaluated by the issue processor.

Stakeholder Info (if applicable)

unazko commented 2 years ago

Hello @mydavidzhang,

Please do refer to the following incident: https://github.com/SAP/ui5-webcomponents/issues/5596 for the same issue. There is an answer with recommendations for this use case.

Best Regards, Boyan Rakilovski