Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Preserve specificity when transforming atom-text-editor::shadow#13124

Merged
nathansobo merged 1 commit intomasterfrom
ns-preseve-shadow-specificity
Nov 2, 2016
Merged

Preserve specificity when transforming atom-text-editor::shadow#13124
nathansobo merged 1 commit intomasterfrom
ns-preseve-shadow-specificity

Conversation

@nathansobo
Copy link
Contributor

@nathansobo nathansobo commented Nov 1, 2016

Simply replace ::shadow with .editor to preserve the specificity of the transformed rule. This isn't beautiful, but it's the only way to guarantee that the styling transition is smooth enough to justify not bumping the major.

It would be great if some people that had styling regressions due to specificity could give this build a spin and see if things would have been okay if we transformed this way.

Closes #13019

/cc @as-cii @atom/maintainers @abe33

Simply replace ::shadow with .editor to preserve the specificity of the
transformed rule. This isn't beautiful, but it's the only way to
guarantee that the styling transition is smooth enough to justify not
bumping the major.
@simurai
Copy link
Contributor

simurai commented Nov 2, 2016

So far I only know that red-wavy-underline would've been affected by this issue. I think in the meantime @lee-dohm fixed it already.

When testing with version 0.3.0 (that has the ::shadow selector), it doesn't seem to work initially. Only when making a random change to the red-wavy-underline.less file. Could the reason be that live-reload runs through the transformation, but not on initial load?

@as-cii
Copy link
Contributor

as-cii commented Nov 2, 2016

Code-wise this looks good to me. Thanks for the fix, @nathansobo! ✨ 🙇

@nathansobo
Copy link
Contributor Author

@simurai this is probably because the transformed file is cached on your machine using the old strategy.

@nathansobo nathansobo merged commit f293b80 into master Nov 2, 2016
@nathansobo nathansobo deleted the ns-preseve-shadow-specificity branch November 2, 2016 14:30
simurai added a commit to atom/flight-manual.atom.io that referenced this pull request Nov 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants