[cp stag] Revert "Remove onClick from non-interactive Pressables to fix TalkBack a11y"#87062
Conversation
|
@abdulrahuman5196 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] |
|
|
|
@dominictb will review this revert PR |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3b7a83b712
ℹ️ 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".
| ref={ref as ForwardedRef<View>} | ||
| disabled={fullDisabled} | ||
| onPress={!isDisabled && interactive ? singleExecution(onPressHandler) : undefined} | ||
| onPress={!isDisabled ? singleExecution(onPressHandler) : undefined} |
There was a problem hiding this comment.
Keep onPress detached for non-interactive pressables
This change wires onPress whenever the component is not disabled, even when interactive is false, so non-interactive elements still register a click handler on web. In this codebase, interactive=false is used to render non-actionable rows (e.g. in MenuItem), and attaching the handler makes assistive tech treat them as actionable again (the TalkBack regression this revert references), while also allowing press lifecycle callbacks to fire on elements that should be inert.
Useful? React with 👍 / 👎.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
On to @Valforte |
|
🚧 @jasperhuangg has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
…ractivePressableA11y [cp stag] Revert "Remove onClick from non-interactive Pressables to fix TalkBack a11y" (cherry picked from commit 73153c9) (cherry-picked to staging by jasperhuangg)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/jasperhuangg in version: 9.3.52-2 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes required. This PR reverts #86731, which was a technical accessibility fix to Pressable components (removing
These are internal UI framework changes with no impact on user-facing features, settings names, navigation paths, or workflows documented in |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.52-9 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/jasperhuangg in version: 9.3.53-0 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the changes in this PR against the help site articles under No help site changes are required. This PR reverts #86731, which was an internal accessibility fix involving:
These are purely internal component implementation details. They don't affect any user-facing features, settings names, workflow steps, or UI labels that are documented in the help site. |
|
🚀 Cherry-picked to staging by https://github.com/jasperhuangg in version: 9.3.53-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.53-7 🚀
|
Explanation of Change
Fixed Issues
$ #87002
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include ""[No QA].""
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