-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[docs] Improve homepage accessibility #18745
Conversation
Details of bundle changes.Comparing: 816fe82...06b5187
|
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.
I don't see a consistent logic for when images are decorative or not. I learned that logos are usually not decorative (https://webaim.org/techniques/alttext/#logos or https://www.deque.com/blog/great-alt-text-introduction/)
@@ -199,6 +199,7 @@ function HomeSteps(props) { | |||
data-ga-event-action="click" | |||
data-ga-event-label="home-image" | |||
className={classes.link} | |||
aria-hidden="true" |
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.
Why would we hide this link from assistive technology?
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.
I have seen the Wave Chrome extension report the same adjacent issue on the homepage:
Alerts - Redundant link
What It Means
Adjacent links go to the same URL.
Why It Matters
When adjacent links go to the same location (such as a linked product image and an adjacent linked product name that go to the same product page) this results in additional navigation and repetition for keyboard and screen reader users.
How to Fix It
If possible, combine the redundant links into one link and remove any redundant text or alternative text (for example, if a product image and product name are in the same link, the image can usually be given alt="").
The Algorithm... in English
Two adjacent links go to the same URL.
Standards and Guidelines
Both logos are accompanied by the text "Material-UI". Labelling them would be redundant, therefore they're decorative.
Because it's redundant. |
If something is redundant then we could remove it. Again logos are usually next to text. That fact makes them not decorative. Do you have some ressources explaining this and why is webaim or dequeue not a reliable ressource in your opinion? |
That's what aria-hidden does. It removes it from the accessibility tree.
Sure, here you go: https://webaim.org/techniques/alttext/#logos
https://www.deque.com/blog/great-alt-text-introduction/)
|
@mbrookes Are you sure the patch solves the problem? It seems that I can still navigate to the image link with VoiceOver (but I have no more description of what the link is about) and Wave still reports a link duplication warning (not an error). What about keeping the duplicate link (ignoring the problem)? |
It seems Safari behaves differently to Chrome. Okay, I give up for now. Perhaps @eps1lon will have more luck.
Yes, I had queried it with them. Apparently it's intentional - a hidden item might be programatically unhidden, so they warn anyway, but said the warning can be ignored if it will always be hidden. |
Fix some accessibility issues found with axe beta:
Issues not fixed: