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

Consistently use :disabled rather than [disabled] selector (#25317)

Closes https://github.com/twbs/bootstrap/issues/25316
This commit is contained in:
Patrick H. Lauke
2018-01-15 20:51:01 +00:00
committed by GitHub
parent fa3de5cbd8
commit 1f490ec165
5 changed files with 11 additions and 11 deletions

View File

@@ -34,12 +34,12 @@
}
// Opinionated: add "hand" cursor to non-disabled .btn elements
&:not([disabled]):not(.disabled) {
&:not(:disabled):not(.disabled) {
cursor: pointer;
}
&:not([disabled]):not(.disabled):active,
&:not([disabled]):not(.disabled).active {
&:not(:disabled):not(.disabled):active,
&:not(:disabled):not(.disabled).active {
background-image: none;
@include box-shadow($btn-active-box-shadow);
@@ -51,7 +51,7 @@
// Future-proof disabling of clicks on `<a>` elements
a.btn.disabled,
fieldset[disabled] a.btn {
fieldset:disabled a.btn {
pointer-events: none;
}