1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 16:50:00 +02:00

Introduce posibility to disable !important suffix for utility classes (#29625)

This commit is contained in:
Martijn Cuppens
2020-02-10 15:05:07 +01:00
committed by GitHub
parent a0811af216
commit 6e8ea2722d
3 changed files with 3 additions and 1 deletions

View File

@@ -227,6 +227,7 @@ $enable-pointer-cursor-for-buttons: true !default;
$enable-rfs: true !default;
$enable-validation-icons: true !default;
$enable-deprecation-messages: true !default;
$enable-important-utilities: true !default;
// Spacing

View File

@@ -28,7 +28,7 @@
.#{$property-class + $infix + $property-class-modifier} {
@each $property in $properties {
// stylelint-disable-next-line declaration-no-important
#{$property}: $value !important;
#{$property}: $value if($enable-important-utilities, !important, null);
}
}
}