Remove hover states from disabled buttons
This commit is contained in:
parent
5139a19e1e
commit
c1b374a708
2 changed files with 21 additions and 16 deletions
|
@ -220,14 +220,6 @@
|
||||||
@include btn-with-margin;
|
@include btn-with-margin;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.disabled {
|
|
||||||
pointer-events: auto !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
&[disabled] {
|
|
||||||
pointer-events: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fa-caret-down,
|
.fa-caret-down,
|
||||||
.fa-chevron-down {
|
.fa-chevron-down {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
|
@ -451,19 +443,27 @@
|
||||||
@include btn-svg;
|
@include btn-svg;
|
||||||
}
|
}
|
||||||
|
|
||||||
// All disabled buttons, regardless of color
|
// All disabled buttons, regardless of color, type, etc
|
||||||
|
%disabled {
|
||||||
|
background-color: $gray-light !important;
|
||||||
|
border-color: $theme-gray-200 !important;
|
||||||
|
color: $gl-text-color-disabled !important;
|
||||||
|
opacity: 1 !important;
|
||||||
|
cursor: not-allowed !important;
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: $gl-text-color-disabled !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.btn.disabled,
|
.btn.disabled,
|
||||||
.btn[disabled],
|
.btn[disabled],
|
||||||
fieldset[disabled] .btn,
|
fieldset[disabled] .btn,
|
||||||
.dropdown-toggle[disabled],
|
.dropdown-toggle[disabled],
|
||||||
[disabled].dropdown-menu-toggle {
|
[disabled].dropdown-menu-toggle {
|
||||||
background-color: $gray-light;
|
@extend %disabled;
|
||||||
border-color: $theme-gray-200;
|
|
||||||
color: $gl-text-color-disabled;
|
|
||||||
opacity: 1;
|
|
||||||
cursor: not-allowed;
|
|
||||||
|
|
||||||
i {
|
&:hover {
|
||||||
color: $gl-text-color-disabled;
|
@extend %disabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Set standard disabled state for all buttons
|
||||||
|
merge_request:
|
||||||
|
author:
|
||||||
|
type: other
|
Loading…
Reference in a new issue