Commit 0602c8df authored by Lyza Danger Gardner's avatar Lyza Danger Gardner

Remove hover effect for disabled buttons

parent a683a98a
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
@include utils.icon--medium; @include utils.icon--medium;
} }
&:hover { &:hover:not([disabled]) {
transition: 0.2s ease-out; transition: 0.2s ease-out;
color: var.$grey-7; color: var.$grey-7;
} }
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
&[aria-pressed='true'] { &[aria-pressed='true'] {
color: var.$color-brand; color: var.$color-brand;
&:hover { &:hover:not([disabled]) {
color: var.$color-brand; color: var.$color-brand;
} }
} }
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
font-weight: 700; font-weight: 700;
background-color: var.$grey-1; background-color: var.$grey-1;
&:hover { &:hover:not([disabled]) {
background-color: var.$grey-2; background-color: var.$grey-2;
} }
...@@ -96,10 +96,16 @@ ...@@ -96,10 +96,16 @@
color: var.$grey-1; color: var.$grey-1;
background-color: var.$grey-mid; background-color: var.$grey-mid;
&:hover { &:hover:not([disabled]) {
color: var.$grey-1; color: var.$grey-1;
background-color: var.$grey-6; background-color: var.$grey-6;
} }
&:disabled {
// Note: this color does not meet WCAG contrast requirements,
// but is admissable because it is applied to disabled elements
color: var.$grey-semi;
}
} }
/** /**
...@@ -116,7 +122,7 @@ ...@@ -116,7 +122,7 @@
border-radius: 0; // Turn off border-radius to align with <input> edges border-radius: 0; // Turn off border-radius to align with <input> edges
border-left: 0; // Avoid double border with the <input> border-left: 0; // Avoid double border with the <input>
&:hover { &:hover:not([disabled]) {
background-color: var.$grey-2; background-color: var.$grey-2;
} }
} }
...@@ -128,7 +134,7 @@ ...@@ -128,7 +134,7 @@
@include button; @include button;
color: var.$grey-mid; color: var.$grey-mid;
padding: 0; padding: 0;
&:hover { &:hover:not([disabled]) {
color: var.$color-link-hover; color: var.$color-link-hover;
text-decoration: underline; text-decoration: underline;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment