mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
Introduce posibility to disable !important suffix for utility classes (#29625)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user