fix: update dark-contrast config#86680
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@dubielzyk-expensify @jayeshmangwani One of you needs to 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 67c2b27dc0
ℹ️ 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".
|
Hey 1. Using 2. Unit tests The PR doesn't include any test files, but the author checklist mentions adding unit tests for bug fixes. The Enter key + switch fix in 3. Mention colors look good The 4. Type rename is clean Renaming Overall the changes are focused and address the issues well. |
|
Images look good. I'm gonna run a test build to test further 👍 |
|
🚧 @dubielzyk-expensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
@jayeshmangwani Could you review this one? |
|
@truph01 highlighted part looks odd when mentioning the user. |
|
@dubielzyk-expensify We've updated to
Do you think we need to update the text color here? |
Reviewer Checklist
Screenshots/Videos |
|
@truph01 Everything looks good on the PR apart from this one comment #86680 (comment). |
|
amazing!! |
Great find! Yes let's update it there too |
@dubielzyk-expensify What should be updated here? |
|
Actually there's no easy fix there cause it's using a bit of a different pattern. Let's leave that one for now and I'll see if we can explore and do it as a follow-up |
|
Sounds good, let’s proceed with this PR. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @Valforte 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/Valforte in version: 9.3.52-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 I reviewed the changes in this PR and checked the help site documentation under Finding: The existing Account Settings article documents the Theme preferences but does not mention the High contrast mode toggle (introduced in #85197). While this PR itself is bug fixes, the underlying feature was never documented. Help site PR created: #87000 Changes made:
Please mark the PR as "Ready for review" when it looks good. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.52-9 🚀
|





















Explanation of Change
This PR fixes four bugs introduced by PR #85197 (High Contrast theme):
mentionText: colors.blue700, mentionBG: colors.blue100todark-contrast.ts:Result:
Enter key doesn't toggle high contrast switch ([Due for payment 2026-04-14] Preference - Unable to turn on the high contrast mode toggle using enter key #86346): The
disableEnterShortcutguard in BaseSelectionList only checked for button and checkbox roles. When the Switch (role=switch) had focus inside the SelectionList footer, pressing Enter triggered the list's keyboard shortcut instead. Fixed by addingCONST.ROLE.SWITCHtodisableEnterShortcutinBaseSelectionList.tsxGBR badge ignores high contrast theme ([Due for payment 2026-04-14] Theme - High contrast theme is not applied on GBR on LHN #86349): badgeStrongText used hardcoded colors.white instead of a theme-aware variable. Fixed by changing it to
theme.buttonSuccessText, which resolves to near-white in normal themes and dark green in high-contrast themes.Result:
Fixed Issues
$ #79228 (Original issue)
$ #86339
$ #86346
$ #86349
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
Screen.Recording.2026-03-31.at.01.24.34.mov