[SF][A11Y][Button]: Svg graphics for icon buttons not marked as presentational graphics
Hi, collegue,
When we run AXE on an icon button, then it will show an issue saying that
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
Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.
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.
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