-
Notifications
You must be signed in to change notification settings - Fork 64
Use aria-label for WordPress affiliation link #2187
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/2187 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
Size Change: -8 B (0%) Total Size: 908 kB ℹ️ View Unchanged
|
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.
Approving with a suggestion to further simplify the change.
@@ -10,8 +13,7 @@ | |||
class="label-regular flex flex-row items-center gap-1" | |||
> | |||
<template #wordpress> | |||
<WordPress class="aria-hidden" /> |
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.
class="aria-hidden"
? I think just making this bit aria-hidden=true
would've fixed it.
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.
Do you mean removing aria-label added in this PR and adding the non-tailwind aria-hidden class would fix the "no space between WordPress and project for screenreaders" problem, @dhruvkb?
I tried with VoiceOver, and when you and aria-label to the link, all of the other content becomes invisible for screenreader.
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.
Huh, that's interesting. I approved your solution though because it definitely works.
Fixes
Fixes #2183 by @obulat
Description
This PR adds an
aria-label
to the WordPress link in the footer to make sure that the screen readers read it correctly, with the necessary pauses between the words.Testing Instructions
Turn on a screenreader and listen to what it says for the link in the footer.
Checklist
Update index.md
).main
) ora parent feature branch.
errors.
Developer Certificate of Origin
Developer Certificate of Origin