Skip to content

Commit

Permalink
Fix disabled .btn cursor (#30004)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens committed Feb 3, 2020
1 parent 0d1aee6 commit fbf294a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scss/_buttons.scss
Expand Up @@ -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;
Expand All @@ -37,12 +36,16 @@
@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);
}
}
}
}
Expand Down

0 comments on commit fbf294a

Please sign in to comment.