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
Jetpack pricing: fix alternative texts in modals #69003
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~125 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
Nice catch @monsieur-z! tested and working as expected. code looks good to me👍
@@ -32,7 +32,7 @@ const TagItems: React.FC< { tags: JetpackTag[] } > = ( { tags } ) => ( | |||
<> | |||
{ tags.map( ( tag ) => ( | |||
<div className="product-lightbox__detail-tags-tag" key={ tag.tag }> | |||
<span>{ Tags[ tag.tag ] }</span> | |||
<span aria-hidden="true">{ Tags[ tag.tag ] }</span> |
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.
Making sure icons are not read by screen readers here, since they are purely decorative.
Thanks @jkguidaven! I missed that modal. I've updated the code and instructions accordingly. |
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 for fixing all accessibility issues @monsieur-z .. the code looks good to me and it tested good. 💯 👍
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7582258 Thank you @monsieur-z for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
Changes proposed in this Pull Request
This PR adds an accessible name to the close button of the language selector, in the footer of the Jetpack pricing page, and the products lightbox. This way, visitors using a screen reader get proper context when the button gets focus (see video below).
Implementation notes
Name is added via the
aria-label
HTML attribute.Testing instructions
aria-label
attribute.Screenshots
close-button.mov
Voice Over gives information about the close button when it is given focus.
lightbox.mov
Same here. Besides, Voice Over ignores icons completely.