2023-05-25 16:44:03 +02:00
|
|
|
---
|
2023-05-26 00:01:04 +02:00
|
|
|
title: 'Breaking Change: Duplicate Variable Flags'
|
2023-05-25 16:44:03 +02:00
|
|
|
introduction: >
|
|
|
|
Variables will only allow a single `!global` or `!default` flag. Duplicate
|
|
|
|
flags never had any additional effect, this just ensures that stylesheets are
|
|
|
|
more consistent.
|
|
|
|
---
|
|
|
|
|
|
|
|
## Phase 1
|
|
|
|
|
2023-06-01 22:56:54 +02:00
|
|
|
{% compatibility 'dart: "2.0.0"', 'libsass: false', 'ruby: false' %}{% endcompatibility %}
|
2023-05-25 16:44:03 +02:00
|
|
|
|
|
|
|
Starting in Dart Sass 2.0.0, if a single variable declaration has more than one
|
|
|
|
each `!global` or `!default` flag, this will be a syntax error. This means that
|
|
|
|
`$var: value !default !default` will be forbidden. `$var: value !global
|
|
|
|
!default` will still be allowed.
|
|
|
|
|
|
|
|
## Transition Period
|
|
|
|
|
2023-06-01 22:56:54 +02:00
|
|
|
{% compatibility 'dart: "1.62.0"', 'libsass: false', 'ruby: false' %}{% endcompatibility %}
|
2023-05-25 16:44:03 +02:00
|
|
|
|
|
|
|
Until Dart Sass 2.0.0 is released, multiple copies of a flag just produce
|
|
|
|
deprecation warnings.
|