-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Avatar]: attribute accessibleName doesn't seem to have any effect #10461
Comments
Hello @SAP/ui5-webcomponents-topic-p, There is an issue rasied by the AXE tool for the ui5-avatar, when accessible-name is set.
Error is raised that svg element does not have an accessible text. As I can see the accessible name is applied to the wrapper element of the avatar with role="img", but on the svg it self the is no accessible name. Can you take over? Best Regards, |
Hello @gurkirpalgill, accessible-name is the correct way to set a property. Best Regards, |
Now, when the ui5-avatar is used with an icon, its accessible-name is correctly set at the SVG level, ensuring proper announcement. Fixes: #10461
🎉 This issue has been resolved in version v2.8.0-rc.2 🎉 The release is available on v2.8.0-rc.2 Your semantic-release bot 📦🚀 |
Bug Description
When using accesssibleName/accessible-name attribute along with icon attribute in Avatar component it doesn't seem to have any effect on the svg image.
axe-Devtools complaints
Ensure <svg> elements with an img, graphics-document or graphics-symbol role have an accessible text
Affected Component
Avatar
Expected Behaviour
When using accessibleName attribute along with icon attribute, aria-label should be propagated to the svg image tag. see attached screenshots.
Isolated Example
No response
Steps to Reproduce
No response
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.x
Browser
Chrome, Edge, Firefox, Safari
Operating System
No response
Additional Context
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: