Back to Sass

Breaking Change: Duplicate Variable Flags

source/documentation/breaking-changes/duplicate-var-flags.md

latest619 B
Original Source

Phase 1

{% compatibility 'dart: "2.0.0"', 'libsass: false', 'ruby: false' %}{% endcompatibility %}

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

{% compatibility 'dart: "1.62.0"', 'libsass: false', 'ruby: false' %}{% endcompatibility %}

Until Dart Sass 2.0.0 is released, multiple copies of a flag just produce deprecation warnings.

{% render 'silencing_deprecations' %}