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

[SF][A11Y][Button]: Svg graphics for icon buttons not marked as presentational graphics

Open tandan0813 opened this issue 4 years ago • 3 comments

Hi, collegue, When we run AXE on an icon button, then it will show an issue saying that elements with an img role must have an alternative text(attached screenshot for more details). image

Expected behavior Since these svg graphics within the Bookmark icon buttons are decorative, it can be marked as decorative with null/empty "alt". Ref: https://www.w3.org/WAI/tutorials/images/decorative/ They are considered decorative because they are present within button tag and button already has meaningful accessible name.

UI5 Web Components for React Information @ui5/webcomponents version: 1.6.0 @ui5/webcomponents-react version: 0.27.0 Operating System: Browser: Chrome

Priority

  • [ ] Low
  • [x] Medium
  • [ ] High
  • [ ] Very High

tandan0813 avatar Aug 24 '22 06:08 tandan0813

Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.

Lukas742 avatar Aug 24 '22 06:08 Lukas742

Hello @tandan0813 the alt attribute is specific to the <img> tag and not the <svg> one. However, the AXE reported issue is valid the way the ui5-button is currently implemented , and we are aware of it and currently working towards its solution.

Related to: #5687; #5733 #5596 #5505 #5733

Hello @SAP/ui5-webcomponents-topic-b as this is a duplicated issue on a problem that as far as I understand is currently being processed, could you please close it when its done and notify the reporter.

ndeshev avatar Aug 31 '22 04:08 ndeshev

Hello @tandan0813,

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

unazko avatar Aug 31 '22 08:08 unazko