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

[7364]: Deconcatenate selectors in src/ui/public #7547

Conversation

cjcenizal
Copy link
Contributor

Relates to #7364

@cjcenizal cjcenizal force-pushed the 7364/chore/deconcatenate-selectors-public-styles branch from 6391885 to 99464df Compare June 28, 2016 00:23
&-title {
}

.kibana-nav-info-title {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Watch out indentation

Copy link
Contributor Author

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. :)

Copy link
Contributor

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

@bevacqua
Copy link
Contributor

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 bevacqua assigned cjcenizal and unassigned bevacqua Jun 28, 2016
@cjcenizal
Copy link
Contributor Author

@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.

@cjcenizal cjcenizal merged commit 1248b2f into elastic:master Jun 28, 2016
@cjcenizal cjcenizal deleted the 7364/chore/deconcatenate-selectors-public-styles branch June 28, 2016 16:11
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
…te-selectors-public-styles

[7364]: Deconcatenate selectors in src/ui/public

Former-commit-id: 1248b2f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants