mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Introduce posibility to disable !important suffix for utility classes (#29625)
This commit is contained in:
parent
a0811af216
commit
6e8ea2722d
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -273,6 +273,7 @@ You can find and customize these variables for key global options in Bootstrap's
|
||||
| `$enable-rfs` | `true` (default) or `false` | Globally enables [RFS]({{< docsref "/getting-started/rfs" >}}). |
|
||||
| `$enable-validation-icons` | `true` (default) or `false` | Enables `background-image` icons within textual inputs and some custom forms for validation states. |
|
||||
| `$enable-deprecation-messages` | `true` or `false` (default) | Set to `true` to show warnings when using any of the deprecated mixins and functions that are planned to be removed in `v5`. |
|
||||
| `$enable-important-utilities` | `true` (default) or `false` | Enables the `!important` suffix in utility classes. |
|
||||
|
||||
## Color
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user