Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/theming): Fix subtle bug in current-selector-or-root
There was a sublte bug in the previous implementation. Consider the case: ```scss div { @include current-selector-or-root() { color: red; } color: green; } ``` The previous implementation lifted the `color: red;` into a separate selector block that came *after* the initial one, resulting in the order being flipped: ```css div { color: green; } div { color: red; } ``` The new code will produce the correct ordering: ```css div { color: red; color: green; } ```
- Loading branch information