-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(badge): remove badge margins #11599
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
fix(badge): remove badge margins #11599
Conversation
@jelbourn @amcdnl marking this as "needs discussion" since I can see it going two ways. On one hand, we don't want to take up the extra space if we don't have to, but on the other it means that toggling between a visible and a hidden badge will cause the element to shift. IMO the shifting isn't that big of an issue, because the badge is being removed at the same time. What do you think? |
Why does the badge affect layout at all? |
AFAIK the reasoning is that it makes some extra space so it doesn't overlap with the element next to it. |
@amcdnl do you have any opinions? I'm leaning towards not removing the margin because I think it's worse for the UI to jump than to have the extra space. |
@jelbourn - I'm on the fence. I agree the jumping is not ideal but a odd white space in text might be just as frustrating. If I had to choose, I'd probably say remove the whitespace. |
47ef3ee
to
54ca0ee
Compare
Removes the margins that are being added to an element that has a badge. Having the margin was problematic, because it can influence the user's layout and it doesn't handle toggling between a visible and hidden badge very well. Fixes angular#11596.
54ca0ee
to
18b8513
Compare
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
Caretaker note: we need to evaluate whether this change is minor or major based on how it affects google3 |
Change did not affect any internal tests - I'd be alright with this being minor |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Removes the margins that are being added to an element that has a badge. Having the margin was problematic, because it can influence the user's layout and it doesn't handle toggling between a visible and hidden badge very well.
Fixes #11596.