-
Notifications
You must be signed in to change notification settings - Fork 2k
Accessibility: Add informative aria-label
to the PremiumBadge
domain component
#103742
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
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~8 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~240 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. Async-loaded Components (~392 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. 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.
Looks good and works great with VoiceOver
👍
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.
The code looks good to me, but I'm not sure how to test it properly.
When activating the voice over and selecting the tooltip I hear the information inside the tooltip and not the new popoverAriaLabel
.
voice-over-premium-tooltip.mp4
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 @ivan-ottinger for working on this. This is working as expected. LGTM 👍
I noticed another problem with the Select button. When navigating using VoiceOver, the domain name is announced, making it difficult to know which domain is currently selected. I created an issue for that https://linear.app/a8c/issue/DOTCOM-13356/accessibility-select-button-doesnt-announce-selected-domain-in-voice |
|
Thank you for your reviews and testing everyone!
Here's how I navigate through the page using Tab, Shift + Tab, Control + Option + Left Arrow, Control + Option + Right Arrow: Screen.Capture.on.2025-05-29.at.09-53-07.mov(there's a bit of an echo in the recording; sorry about that) Looking at this again, it brings up another area which we could improve: When the InfoPopover component is opened already, the only way to close it at the moment is to click away. I looked into this briefly and fix is not that straightforward, so I will leave it out of this PR and based on priorities and time may look at it later. |
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/17523785 Some locales (Hebrew, Japanese) have been temporarily machine-translated due to translator availability. All other translations are usually ready within a few days. Untranslated and machine-translated strings will be sent for translation next Monday and are expected to be completed by the following Friday. Thank you @ivan-ottinger for including a screenshot in the description! This is really helpful for our translators. |
Related to DOTCOM-13261
Related to #103674
Proposed Changes
aria-label
for thePremiumBadge
domain component used on the "Select Domain" stepWhy are these changes being made?
Testing Instructions
yarn start
(or use Calypso Live).Premium domain
badges and listen to the announcements.Pre-merge Checklist