-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add individual unread counts #1262
Add individual unread counts #1262
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.
The code LGTM! I do wonder if this is following MD3 guidelines though - looking at the MD3 guideline for badges, I don't see an example where its being used alongside a Chip. If you don't mind, could we try a couple different variations to see which one feels most like MD3?
It seems like the main placements for badges are on icons, or at the trailing edge of a larger component
Reference: https://m3.material.io/components/badges/guidelines
Hmm, maybe I can pull in @machinaeZER0 for some feedback! I do think the second one seems to align a bit more with MD3 but would like to hear other opinions. |
Heyyyyyy. This is cool and I like the idea! I think that the initial mockup, while not necessarily adherent to MD3 guidelines, is more scalable with larger numbers - in the second mockup, we'd start getting pretty cramped in the (albeit hypothetical) example where someone has double/triple digit numbers across the three pills at the top there. Figure we'd probably cap at a "99+" (capping at 9+ doesn't feel helpful to a user here), but I think the point still stands. Definitely happy with the placement of the one in the bottom row, and the initial mockup feels similar enough that it feels natural on this screen, even though they're technically different implementations :) Honestly, my only real critique of the initial video is that I might nudge the dots down a pixel or two, as they feel a smidge high up on the corner of the pills to me. Out of curiosity, is it possible to show what all the numbered dots would look like when they go into double digits? |
Thanks for the feedback, as always, @machinaeZER0!!
Yes, regardless of which UI approach we take, I did add the cap at 99+.
Of course! I'm actually glad you suggested that because I found that in the original position, a sufficiently large badge would overlap the other buttons, so I needed to add a horizontal adjustment based on the length of the number. Here are both designs with a 99+.
Sure, here's that too!
Let me know what you think! |
Thanks for taking the time to mock those up! Having the numbers directly next to the text fits better than I thought it would, actually. Does this section respect system font sizing? If so, that might be a reason to stick to the corner dot approach - imagining that three-pill section would get super wonky if the text elements got any bigger. Overall I think that the corner dot is the most appropriate method presented so far, but that doesn't necessarily mean it's the best choice - just my two cents! And I think I prefer your original mockup to the version with the slightly lower dots (but again, thank you for helping me see what it would look like). That said, my main thinking against numbers and text side by side is lack of space, and one thing does come to mind here - personally, I think the fact that the activated pill is an "active color" is enough of an navigation indicator without needing the in-pill check mark next to the active category (which also might read as confusing to users seeing the same icon used on the page for a "mark as read" action)... if we felt it was okay to axe the check, we'd gain back quite a bit of horizontal real estate! At that point, I think I'd be much more on-board with the side by side approach. What do you both think? If the goal is to try and stick to MD3 guidelines, I think that would be my suggestion :) |
If I can summarize your comment, I think this is what you're leaning towards?
Also keep in mind two more things:
I think all of these things favor the inline approach. |
Thanks so much for the feedback @machinaeZER0, you bring up some really good points!
Funnily enough, this image comes from the official MD3 guidelines themselves 😅
I'm on board with this as well, I agree that we don't necessarily need to have the active icon indicator. As @machinaeZER0 mentioned previously, we don't necessarily need to stick to MD3 guidelines all the time! I just thought it'd be good to experiment with different designs to see which one we prefer the most. I'm personally okay with either choice, but if I were to have to choose one, I'd go with the inline one! I'll let @micahmo make the final decision 😄 |
No pressure! 😆 Sounds like we're happy with the inline count and no checkmark. If that's the case, this PR should be good to go whenever! |
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.
Just one small comment. Otherwise, it looks good!
Pull Request Description
This PR adds specific unread count badges for each type of inbox message. This is very helpful to break down the overall unread count and quickly see where your messages are. For example, if you have mentions but no replies, you can quickly see that.
Issue Being Fixed
Issue Number: N/A
Screenshots / Recordings
qemu-system-x86_64_z3KrmDJ2oD.mp4
Checklist
semanticLabel
s where applicable for accessibility?