]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Consistently use `:disabled` rather than `[disabled]` selector (#25317)
authorPatrick H. Lauke <redux@splintered.co.uk>
Mon, 15 Jan 2018 20:51:01 +0000 (20:51 +0000)
committerGitHub <noreply@github.com>
Mon, 15 Jan 2018 20:51:01 +0000 (20:51 +0000)
Closes https://github.com/twbs/bootstrap/issues/25316

scss/_buttons.scss
scss/_close.scss
scss/_navbar.scss
scss/_pagination.scss
scss/mixins/_buttons.scss

index 3a5f5ee85b3ac353b7f5a6cbbc9a6efa07b6311b..41b7068224f92f1de103a1f2b104b1401cddcf0f 100644 (file)
   }
 
   // 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;
 }
 
index f1763cc224cbaf9091c27219e7f21d468e32a713..871cb08fd8e5feeba57130a9a0daed899c08efe4 100644 (file)
@@ -14,7 +14,7 @@
   }
 
   // Opinionated: add "hand" cursor to non-disabled .close elements
-  &:not([disabled]):not(.disabled) {
+  &:not(:disabled):not(.disabled) {
     cursor: pointer;
   }
 }
index 677a2753f6fe9fa3d3a3772c80424beeac7f413e..8d68c6c8c452ac1eb1bd4e10c8aa494c19b24f1b 100644 (file)
   }
 
   // Opinionated: add "hand" cursor to non-disabled .navbar-toggler elements
-  &:not([disabled]):not(.disabled) {
+  &:not(:disabled):not(.disabled) {
     cursor: pointer;
   }
 }
index b0193d170e3fde0f0090b55f9b6c887ad7a55a33..959b2eb4ba25d57aaa1eefe702acf42d3d019e8e 100644 (file)
@@ -28,7 +28,7 @@
   }
 
   // Opinionated: add "hand" cursor to non-disabled .page-link elements
-  &:not([disabled]):not(.disabled) {
+  &:not(:disabled):not(.disabled) {
     cursor: pointer;
   }
 }
index e6ccbc6d48a4a390ebbf2d3b8fa3beb2d5a7b8cf..1cbe671221d9aedffe397a85c6afa95e51b6c3f2 100644 (file)
@@ -33,8 +33,8 @@
     border-color: $border;
   }
 
-  &:not([disabled]):not(.disabled):active,
-  &:not([disabled]):not(.disabled).active,
+  &:not(:disabled):not(.disabled):active,
+  &:not(:disabled):not(.disabled).active,
   .show > &.dropdown-toggle {
     color: color-yiq($active-background);
     background-color: $active-background;
@@ -77,8 +77,8 @@
     background-color: transparent;
   }
 
-  &:not([disabled]):not(.disabled):active,
-  &:not([disabled]):not(.disabled).active,
+  &:not(:disabled):not(.disabled):active,
+  &:not(:disabled):not(.disabled).active,
   .show > &.dropdown-toggle {
     color: color-yiq($active-background);
     background-color: $active-background;