]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix disabled `.btn` cursor (#30004)
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Mon, 3 Feb 2020 18:54:29 +0000 (19:54 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Feb 2020 18:54:29 +0000 (19:54 +0100)
scss/_buttons.scss

index e87d3393a16dae9cdbf343315e173659aa9c679b..bf7814865ec27cbc259f9be28707378650d23ad4 100644 (file)
@@ -12,7 +12,6 @@
   text-align: center;
   white-space: $btn-white-space;
   vertical-align: middle;
-  cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
   user-select: none;
   background-color: transparent;
   border: $btn-border-width solid transparent;
     @include box-shadow(none);
   }
 
-  &:not(:disabled):not(.disabled):active,
-  &:not(:disabled):not(.disabled).active {
-    @include box-shadow($btn-active-box-shadow);
+  &:not(:disabled):not(.disabled) {
+    cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
 
-    &:focus {
-      @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
+    &:active,
+    &.active {
+      @include box-shadow($btn-active-box-shadow);
+
+      &:focus {
+        @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
+      }
     }
   }
 }