-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Default badge style #40101
Default badge style #40101
Conversation
Looking good! When the badge has an icon and is state=error, we want the icon to use the danger red color as the icon fill. And when the badge has an icon and is state=success, we want the icon to use the success green color as the icon fill. |
Nice, can you do that same line up but show them with icons too? |
@arosiclair 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] |
@shawnborton if you want to assign a reviewer! |
I'll give it a review, going to run a test build now. cc @Expensify/design as well. |
This comment has been minimized.
This comment has been minimized.
@Santhosh-Sellavel you're the reviewer for the other PR. Can you also review this one? |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Looks good, let's get this one into final review? cc @arosiclair @Santhosh-Sellavel |
Resolve Conflicts please |
@shawnborton just for info. The badge component supports a pressable prop, that makes it clickable and then support hover effect. Line 52 in c75c85f
when the component seeks for the style here Lines 1246 to 1263 in c75c85f
it will check if it's 20240416_153341.mp4The new design will need a style for the Just wanted to give you a heads up about this. Let me know if you have any questions or need this to be considered now. |
Sounds good, I don't think any badges need to be able to be pressable at the moment though but we can just leave this as-is. What else do we need to do to get this one over the finish line? Would love to wrap this up so we can also get the report next steps banner PR merged as well. Thanks Rachid! |
Thank you @shawnborton solving conflicts now. |
@Santhosh-Sellavel conflicts solved. Please review. |
@Santhosh-Sellavel friendly pumb! |
Thanks will try to get this today or by this weekend. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari & MacOS: DesktopScreen.Recording.2024-04-22.at.12.26.26.AM.mov |
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.
LGTM, Thanks!
🎯 @Santhosh-Sellavel, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #40663. |
@shawnborton do you think I can get paid too here? 😅 |
Can we try to get this one merged soon? This way we can unblock the PR here. Thanks! |
@arosiclair I think we need your review here! |
✋ 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/arosiclair in version: 1.4.65-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.65-5 🚀
|
Details
This PR will remove additional styling to badge component, make the square style as default, add error and success props.
Changes for the badge component:
Fixed Issues
$ #38471
PROPOSAL: #38471 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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