Skip to content
Snippets Groups Projects
Unverified Commit c1b374a7 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray
Browse files

Remove hover states from disabled buttons

parent 5139a19e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -220,14 +220,6 @@
@include btn-with-margin;
}
 
&.disabled {
pointer-events: auto !important;
}
&[disabled] {
pointer-events: none !important;
}
.fa-caret-down,
.fa-chevron-down {
margin-left: 5px;
Loading
Loading
@@ -451,19 +443,27 @@
@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],
fieldset[disabled] .btn,
.dropdown-toggle[disabled],
[disabled].dropdown-menu-toggle {
background-color: $gray-light;
border-color: $theme-gray-200;
color: $gl-text-color-disabled;
opacity: 1;
cursor: not-allowed;
@extend %disabled;
 
i {
color: $gl-text-color-disabled;
&:hover {
@extend %disabled;
}
}
---
title: Set standard disabled state for all buttons
merge_request:
author:
type: other
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment