-
Notifications
You must be signed in to change notification settings - Fork 345
Open
Labels
needs: more informationNeeds more information from the author before we can move forwardNeeds more information from the author before we can move forwardtag: CSSCSS and SCSS related issuesCSS and SCSS related issues
Description
When compiling the style files from PDST using dart-sass, it emits warnings related to changes is how SASS will deal in the future with mixed declarations.
Short story, before a declaration like:
.example {
color: red;
a {
font-weight: bold;
}
font-weight: normal;
}
Would pull font-weight
to the top of .example
, and define a font-weight
after. Now, they leave the ordering alone.
At least the following cases are present in PDST:
_color.scss:349
_breadcrumbs.scss:30
_admonitions.scss:49
_admonitions.scss:52
_quotes.scss:24
_tables.scss:46
The workaround? As Dart Sass reports:
To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in& {}
.
Metadata
Metadata
Assignees
Labels
needs: more informationNeeds more information from the author before we can move forwardNeeds more information from the author before we can move forwardtag: CSSCSS and SCSS related issuesCSS and SCSS related issues