-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Update Dashicons. #1012
Update Dashicons. #1012
Conversation
This removes the title element from the sprite. This should finally fix #528.
It looks like the tests fail for the icon unit test. Is that test written to look for the title? @BE-Webdesign I think you may have done some of the magic here, can you provide me with a sanity check (not urgent)? I know I made a mistake upstream that I'm fixing, but I'm not sure what's up here. Thank you. |
Okay I read over #528, are we supposed to add an |
Yes when the icon is not purely decorative and represents content that needs to be announced, then this content can be provided as aria-label on the containing element or, as mentioned in #528, using the Twenty Seventeen approach with screen-reader-text e.g.:
Either way, the title should be removed. I forgot to clarify that SVGs should also have |
You have much better eyesight than me 😲 |
If you need any assistance with the tests let me know, happy to help. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Merging this and putting in an upstream fix again. |
This addresses an accessibility issue with the react component, by adding attributes aria-hidden="true" and role="img" to the component. See also discussion in WordPress/gutenberg#1012 (review).
This PR adds aria-hidden="true" and role="img" to the SVG files inside the dashicons component, addressing feedback here: #1012 (comment) Upstream PR: WordPress/dashicons#194 CC: @afercia
This removes the title element from the sprite. This should finally fix #528.
Corresponding upstream PR: WordPress/dashicons#192