-
Notifications
You must be signed in to change notification settings - Fork 365
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
change: [M3-7873] - Use Chip for notification badge #10333
change: [M3-7873] - Use Chip for notification badge #10333
Conversation
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.
Looks much better!
@@ -135,7 +135,12 @@ export const NotificationMenu = () => { | |||
<NotificationIconWrapper isMenuOpen={notificationContext.menuOpen}> | |||
<Bell /> | |||
{numNotifications > 0 ? ( |
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.
&&
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.
Nice change! Confirmed things look good at desktop/tablet/mobile viewports for various #s of notifications.
We do see the chip display next, instead of overlapping, to the notification icon at screens < 370 wide, but that's the case in prod now even with the circular badge icon, so I don't think we generally support screens that small.
Single digits | 3 or more digits |
---|---|
Coverage Report: ✅ |
Such a little thing but this has bugged me forever! Thanks @HanaXu |
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.
There is something so satisfying about the rounded rectangle 🤩
## Description 📝 When the Notification count is past 100, the numbers become difficult to read because their edges appear outside the colored dot. I decided to use the chip component to better display the Notification count. ## How to test 🧪 ### Verification steps (How to verify changes) - Update the label to a 3 digit number on line 141 of `NotificationMenu.tsx` - Confirm the notification badge display in the top right corner
Description 📝
When the Notification count is past 100, the numbers become difficult to read because their edges appear outside the colored dot. I decided to use the chip component to better display the Notification count.
Preview 📷
How to test 🧪
Verification steps
(How to verify changes)
NotificationMenu.tsx
As an Author I have considered 🤔
Check all that apply