File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 7
7
parsing associated with it. It is now parsed like any other unknown plain CSS
8
8
at-rule, where Sass features are only allowed within ` #{} ` interpolation.
9
9
10
+ * ** Breaking change:** A variable definition may now only have a single
11
+ ` !global ` flag or ` !default ` flag, or one of each.
12
+
10
13
### Bogus Combinators
11
14
12
15
* ** Breaking change:** Selectors with more than one combinator in a row, such as
Original file line number Diff line number Diff line change @@ -255,13 +255,8 @@ abstract class StylesheetParser extends Parser {
255
255
switch (identifier ()) {
256
256
case 'default' :
257
257
if (guarded) {
258
- warnings.add ((
259
- deprecation: Deprecation .duplicateVarFlags,
260
- message:
261
- '!default should only be written once for each variable.\n '
262
- 'This will be an error in Dart Sass 2.0.0.' ,
263
- span: scanner.spanFrom (flagStart),
264
- ));
258
+ error ('Only one !default is allowed per declaration.' ,
259
+ scanner.spanFrom (flagStart));
265
260
}
266
261
guarded = true ;
267
262
@@ -272,13 +267,8 @@ abstract class StylesheetParser extends Parser {
272
267
scanner.spanFrom (flagStart),
273
268
);
274
269
} else if (global) {
275
- warnings.add ((
276
- deprecation: Deprecation .duplicateVarFlags,
277
- message:
278
- '!global should only be written once for each variable.\n '
279
- 'This will be an error in Dart Sass 2.0.0.' ,
280
- span: scanner.spanFrom (flagStart),
281
- ));
270
+ error ('Only one !global is allowed per declaration.' ,
271
+ scanner.spanFrom (flagStart));
282
272
}
283
273
global = true ;
284
274
You can’t perform that action at this time.
0 commit comments