-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed the hasText condition from getIconWidthAndHeightStyle utils #51775
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 🚀
|
Explanation of Change
Removed the
hasText
condition fromgetIconWidthAndHeightStyle
to 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop