Removed the hasText condition from getIconWidthAndHeightStyle utils#51775
Conversation
|
Screenshots look good to me from a design perspective 👍 |
|
@jayeshmangwani Thanks for the PR. Our changes adversely impact the icons in the context menu and I think we need a fix. In particular, please observe the 51775-issue-001.mp4 |
|
Great catch @rojiphil ! It looks like we intentionally added the small button size here. App/src/components/ContextMenuItem.tsx Lines 123 to 126 in bef062b We need to remove the @shawnborton @dannymcclain What are your thoughts? Should we match the exact sizing from the staging version here, or stick with the small button size for these two buttons? |
|
Agreed with that Shawn |
|
I agree with Shawn and Jon. (Also, those teeny tiny icons are hilarious 😂) |
|
Cool, Updated the icon size to match the current production version. |
|
@rojiphil since we're using the small button(Icon only) in several places, I'll start by comparing those icons with the prod version before moving forward. |
Not sure if there are any but I think we also need to check for icon only cases where |
|
@rojiphil , I’ve reviewed all instances where we use the small, medium, or large props for the Icon component, and they appear in about 15 files. In my opinion, we have two options:
Let me know what you think! |
@jayeshmangwani I like the new prop idea as that would be neater. Also, |
|
Great, @rojiphil, I’ve pushed the change. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari51775-web-safari-002.mp4Android: Native51775-android-native-001.mp4iOS: mWeb Safari51775-mweb-safari-002.mp4Android: mWeb Chrome51775-mweb-chrome-001.mp4iOS: Native51775-ios-native-001.mp4MacOS: Desktop51775-deskstop-001.mp4 |
rojiphil
left a comment
There was a problem hiding this comment.
@jayeshmangwani Thanks for merging with the latest main.
@mjasikowski Changes LGTM and works well too.
All yours for review. Thanks.
|
Screenshots look good to me. |
|
@jayeshmangwani @rojiphil all good, merging |
|
✋ 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/mjasikowski in version: 9.0.59-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.59-3 🚀
|

Explanation of Change
Removed the
hasTextcondition fromgetIconWidthAndHeightStyleto ensure icon-only buttons use the same icon size as regular buttons.Fixed Issues
$ #51355
PROPOSAL: #51355 (comment)
Tests
Background: 40x40
Icon: 16x16
Verify that no errors appear in the JS console
Offline tests
Same as Tests
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))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
MacOS: Desktop