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: Navbar logo has extra decorative "TypeScript ESLint logo" narration #5213
Comments
|
alt should be present on logo and we should include |
For example, if the logo image is broken, I don't think we should show an alt text—should we? An empty alt seems good enough. |
Yeah if the image is decorative there's no need to include an alt. |
W3C's Web Accessibility Initiative has guidance on alt text for functional images, which specifically calls out logos used within links. Their first example is an image used alone as a linked logo. Here, they recommend supplying alt text, since the image's alt text will be used to populate the link's accessible name for assistive tech. Their second example is what we have on the TypeScript ESLint site: a logo image within the link text.
|
Tried to fix this, but found that even if we supply an empty |
The PR to address this in Docusaurus (facebook/docusaurus#7659) has been merged in. We just need to wait for the team to cut a new beta release before we can fix this here. |
Spoiler: next release will not be beta 😄 |
Following up on this — the Docusaurus team has cut a @JoshuaKGoldberg Thoughts? |
Yeah this bug isn't hard blocking anybody and there's a separate PR already for 2.0. Thanks for the update! |
Wait, never mind. We'll still need to actually update the alt's config after rc.1 is in. |
Hey FYI 2.0 is hopefully scheduled tomorrow, after which I'll update that PR accordingly |
Before You File a Documentation Request Please Confirm You Have Done The Following...
Suggested Changes
The structure of the TypeScript ESLint logo & title in the navbar is roughly:
As a result, screenreaders narrate it as roughly like:
Discussed on stream with @BenDMyers on Twitch: https://www.twitch.tv/videos/1498962341. The logo doesn't add any semantic meaning to the page. We should consider it decorative. See https://www.w3.org/WAI/tutorials/images/decorative for more details.
Affected URL(s)
The text was updated successfully, but these errors were encountered: