Skip to content
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

[Badge] Fix vertical alignment inside IconButton #8677

Merged
merged 1 commit into from Oct 13, 2017
Merged

[Badge] Fix vertical alignment inside IconButton #8677

merged 1 commit into from Oct 13, 2017

Conversation

AndreiBelokopytov
Copy link
Contributor

The problem:
image
Check online demo
Placing Badge inside IconButton component breaks vertical alignment of item. The reason of this behaviour is well-known problem with empty space between inline elements.
The solution:
Change styles of Badge root element to display: inline-flex

@oliviertassinari oliviertassinari added component: badge This is the name of the generic UI component, not the React module! bug 🐛 Something doesn't work labels Oct 13, 2017
@oliviertassinari oliviertassinari merged commit 3181229 into mui:v1-beta Oct 13, 2017
@oliviertassinari
Copy link
Member

@AndreiBelokopytov Thanks

the-noob pushed a commit to the-noob/material-ui that referenced this pull request Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: badge This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants