fix: the button has interactive elements nested inside#79525
fix: the button has interactive elements nested inside#79525mountiny merged 1 commit intoExpensify:mainfrom
Conversation
|
@dukenv0307 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] |
|
@dukenv0307 all yours |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6284112802
ℹ️ 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".
| shouldBeAccessible={false} | ||
| tabIndex={-1} |
There was a problem hiding this comment.
Preserve approval details for screen readers
Marking this MenuItem as inaccessible (shouldBeAccessible={false}/tabIndex={-1}) removes it from screen‑reader navigation, but the surrounding PressableWithoutFeedback only announces its own label. As a result, VoiceOver/TalkBack users can no longer hear the members/approver details that were previously exposed via these menu items. If the goal is to avoid nested interactive elements, consider keeping the text accessible (e.g., include it in the parent’s accessibilityLabel/hint or render static text) while removing only the nested pressable behavior.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
But I think it's fine to keep the accessibilityLabel as it is
There was a problem hiding this comment.
@rushatgabhane Could you help out here? I am not sure that based on the ai comment this is the right way to go about it, does this mean that the users would not be able to get the details of the people in the approval workflow sections?
There was a problem hiding this comment.
i think the expected result of the issue is incomplete
when the user tab navigates, we should announce expenses from [users], and the approver [users]
if we can do it from parent level that'll be great because entire thing is ONE pressable.
So this PR is good, but we need to improve the accessibility label
cc @dukenv0307 wdyt
There was a problem hiding this comment.
ok I'm fine with this approach. @daledah can you please fix it?
|
on it now |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-14.at.22.38.53.movAndroid: mWeb ChromeScreen.Recording.2026-01-14.at.22.36.49.moviOS: HybridAppScreen.Recording.2026-01-14.at.22.40.07.moviOS: mWeb SafariScreen.Recording.2026-01-14.at.22.37.05.movMacOS: Chrome / SafariScreen.Recording.2026-01-14.at.22.35.46.mov |
|
I will merge this now to test something, but @daledah can you please follow up on #79525 (comment) |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.3.3-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.3-8 🚀
|
Explanation of Change
Fixed Issues
$ #76909
PROPOSAL: #76909 (comment)
Tests
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov