Update merchant rules styles#86743
Conversation
|
@carlosmiceli 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] |
|
Send it! Thanks! |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
trjExpensify
left a comment
There was a problem hiding this comment.
Merchant rules update 👍
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @carlosmiceli 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/carlosmiceli in version: 9.3.52-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. The changes are purely visual/styling (adding a border to merchant rule cards, removing bold description text, adjusting spacing/gaps). No features, settings, labels, navigation paths, or user-facing flows were added, removed, or renamed. The existing help site articles (e.g., |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.52-9 🚀
|
| wrapperStyle={[styles.sectionMenuItemTopDescription]} | ||
| descriptionTextStyle={[styles.textSupportingNormal, styles.textStrong, styles.themeTextColor]} | ||
| wrapperStyle={[styles.borderedContentCard, styles.ph4, styles.pv4]} | ||
| descriptionTextStyle={[styles.textNormalThemeText]} |
There was a problem hiding this comment.
This change caused #87270. Switching descriptionTextStyle from textSupportingNormal (which includes lineHeight: 20) to textNormalThemeText (which only sets fontSize: 15 with no lineHeight) caused MenuItem to fall back to its default lineHeight: 16. With a 16/15 ratio and numberOfLines={2} + overflow: hidden, descender characters ('g', 'y', 'p', etc.) on the last visible line get clipped. Fixed in #87300 by adding lineHeight: variables.fontSizeNormalHeight to the description text style.


Explanation of Change
Updates merchant rule styles to have a border and remove the bold title text.
Fixed Issues
$ #86572 (comment)
Tests
Pre-requisite: an account with merchant rules
Workspaces > RulesOffline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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