-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
CSS box sizing issues when using normalize.css #2481
Comments
@cgwyllie Thanks for reporting this. @oliviertassinari This is somehow critical i think, we should fix it before 0.14.0, it will be trivial. What do you think? |
This issus is mysterious to me. |
@oliviertassinari Ah, sorry, I forgot to mention we encountered this when using a |
In this case where it is the parent component introducing padding, should it have the box model explicitly set there instead? |
@oliviertassinari I think this is safe to close |
Yeah, sorry -- haven't tested it, but looks like the PR should work. Thanks :) On 23 December 2015 at 22:06, Ali Taheri Moghaddar <[email protected]
|
@cgwyllie Thanks for responding 💯 |
Hi guys, I've been trying to figure out a way to decrease the fontSize to all the components set, they are too big for my taste, so I started creating a selectable list and using styles trying to decrease the fonts and sizes but I'm seeing isn't that easy. I've started with List and ListItem, I was able to reduce all the elements except the rightToggle element, I'm not seeing a way to override its style. Also I couldn't change the secondaryText font size. Is there an specific approach to achieve this without to much pain?, I'm seeing there are a lot of "magic" numbers hardcoded for the paddings and positioning, wouldn't be better make them overridable? Thanks |
We encountered an issue with
SvgIcon
when using a reset stylesheet which setsbox-sizing: border-box
globally.The reset uses the inherit technique described here: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
However,
SvgIcon
seems to depend on being laid out withbox-sizing: content-box
for its layout to function properly (see attached files).ActionBackup with border-box
ActionBackup with content-box
So far only icons seem affected, but there could be other components depending on
content-box
that we haven't used.I'd love to hear some feedback about this. Is it considered an issue, should Material UI play nice with CSS libraries?
For now we can work around it by giving all SVGs
content-box
, but perhaps we should rather patch theSvgIcon
component to explicitly declare the box model it needs if this is a wider issue.Happy to put a PR together but could use some feedback first.
Thanks,
Chris
The text was updated successfully, but these errors were encountered: