-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[7364]: Deconcatenate selectors in src/ui/public #7547
[7364]: Deconcatenate selectors in src/ui/public #7547
Conversation
6391885
to
99464df
Compare
&-title { | ||
} | ||
|
||
.kibana-nav-info-title { |
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.
Watch out indentation
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.
I'm using the indentation to indicate a parent-child relationship with whitespace, without incurring the additional specificity of nesting. What do you think of this tactic? I've been on teams which have used it successfully in the past... it's a lot easier when the CSS has fewer nested selectors to begin with. :)
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.
I think it's a needless symptom of tight coupling
LGTM besides a couple of minor comments. The table thing is just asking to feel super paintful. Even if we had a nested table inside a table, which I don't think will ever happen in Kibana because this isn't 1995, a highly specific selector like that is super painful when you need to reset a rule. |
@bevacqua I absolutely agree with you about the crazy-high specificity. They're landmines! Here's another example: https://github.com/elastic/kibana/blob/master/src/ui/public/styles/theme.less#L46 The problem with untangling these is that it's really difficult to track down where the selectors are applied in our markup. So each one of these situations will need to be tackled in its own branch, and will probably take at least a few hours to a day to work through. |
…te-selectors-public-styles [7364]: Deconcatenate selectors in src/ui/public Former-commit-id: 1248b2f
Relates to #7364