-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
[Layout] styling specificity using > disallows easy override via classname #6010
Comments
I'm not sure what to answer about that point. We use that CSS feature ( |
This relates to #6013 (comment) in that if we need to split components for a more concrete props API, it might affect the approach. |
@oliviertassinari can you point me to information on |
@rosskevin I don't think that we can compare
We have been using option 1 on the |
I'm closing the issue. I'm expecting other people to raised that point. We will see if someone have a better tradeoff to propose. @rosskevin Thanks for asking. |
I just came into another case where this CSS inheritance is really useful. Consider using react-virtualized to lazy rendering the children item while the parent is a container. Option 1 won't be possible. |
Description
Layout specificity of padding disallows use of override via
className
e.g.
.Layout-gutter-xs-16-3374265422 > .Layout-typeItem-565831246
Generated by this code.
Problem description
Link to minimally-working code that reproduces the issue
Versions
next
The text was updated successfully, but these errors were encountered: