-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[A11y] Roles & States #79147
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
[A11y] Roles & States #79147
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@justinpersaud Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: faf67040e6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
- Change MenuItem role prop type from string to Role - Add accessibilityLabel property to ListItem type
|
This isn't ready for review yet, right? Just asking because I was assigned |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
JmillsExpensify
left a comment
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.
Product review not required.
|
@rushatgabhane could you let us know when this is ready for a review? I'm not sure if you're still adding changes or not, and now there are merge conflicts too |
|
@rushatgabhane Is there some issue where I can get assigned to track this? Or should it be done in one of the issues mentioned in the description? |
|
@ShridharGoel let me figure something out |
|
@justinpersaud all yours, ready for you |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
@justinpersaud Is it possible to create a tracking issue for payment on this? |
|
Just asked @mallenexpensify what the plan is for that since he is manging it with @rushatgabhane |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/justinpersaud in version: 9.3.6-0 🚀
|
|
@rushatgabhane PR failed with such original issues #77462, #77562, #77574 and #74839 1769069924199.79147_iOS.mp4 |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.6-4 🚀
|
Any thoughts @rushatgabhane ? (cuz... I'm not sure, ha) To start... how many of these do you think we'll have, where there isn't a single GH issue to pay from? If it's only a handful, It's likely best to create a new issue for each for payment (and I can do that) |
|
@mallenexpensify it's just this one PR that @ShridharGoel needs to be paid for |
Explanation of Change
Part of
Adds missing accessibility roles and states for better screen reader support by adding role prop to MenuItem for flexible role assignment, adding accessibilityState.selected to menu items, tabs, and list items, adding accessibilityState.expanded to accordion switches, and adding proper roles (tab, searchbox, link, checkbox, combobox) to elements.
Fixed Issues
$ #74839
$ #74885
$ #74888
$ #77462
$ #77535
$ #77536
$ #77544
$ #77549
$ #77562
$ #77568
$ #77574
$ #74864
$ #75556
$ #77558
$ #77563
$ #77566
$ #77567
Tests
Enable screen reader
Go to Settings → App Download Links
Verify download options announce as "link"
Verify that no errors appear in the JS console
Offline tests
N/A - These are accessibility attribute changes that don't affect offline behavior.
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
MacOS: Chrome / Safari