Description
As mentioned in the issue !important
was set whatever if $enable-important-utilities
was true
or false
for colored links. This PR adds a new condition as it is already done for other utilities.
Type of changes
-
Bug fix (non-breaking change which fixes an issue)
Checklist
-
I have read the contributing guidelines -
My code follows the code style of the project (using npm run lint
) -
All new and existing tests passed
How to test
Check with/without enabling $enable-important-utilities
to run npm run css
.
When enabled:
.link-primary {
color: #0d6efd !important;
}
.link-primary:hover, .link-primary:focus {
color: #0a58ca !important;
}
When disabled:
.link-primary {
color: #0d6efd;
}
.link-primary:hover, .link-primary:focus {
color: #0a58ca;
}
Related issues
Closes #37251 (closed)