This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Home link should have an accessible name #1714
Labels
♿️ aspect: a11y
Concerns related to the project's accessibility
✨ goal: improvement
Improvement to an existing user-facing feature
🟧 priority: high
Stalls work on the project or its dependents
Problem
Currently, the home link has accessible name only on the home page of size
md
and above:openverse-frontend/src/pages/index.vue
Lines 16 to 22 in 190d631
In the header has no accessible name. Instead of saying the home page, Voice Over reads out all of the URL.
![Screen Shot 2022-08-20 at 2 42 27 PM](https://user-images.githubusercontent.com/15233243/185744432-4754e580-fbae-4667-a427-b390382425f6.png)
Lighthouse shows the following error:
![Screen Shot 2022-08-20 at 2 43 48 PM](https://user-images.githubusercontent.com/15233243/185744458-8616a611-6078-45cd-9880-921ed04c2963.png)
Description
According to W3C1, we should add an
alt
text to the Openverse logo<img>
element saying "Openverse home".Alternatives
GitHub uses an
aria-label="Homepage"
on the<a>
link, and makes the imagearia-disabled
.MDN also uses
aria-label
on the<a>
element.Ariakit uses a span with text "Reakit" that's clipped to a size of 1x1px inside of the
<a>
element that also hasaria-current="page"
.Additional context
Implementation
Footnotes
https://www.w3.org/WAI/tutorials/images/functional/#example-1-image-used-alone-as-a-linked-logo ↩
The text was updated successfully, but these errors were encountered: