Skip to content

Commit

Permalink
Restore aria-disabled styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Sep 26, 2018
1 parent bb37fff commit 4badd04
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
box-shadow: inset 0 1px 0 #999,;
}

&:disabled {
&:disabled,
&[aria-disabled="true"] {
color: #a0a5aa;
border-color: #ddd;
background: #f7f7f7;
Expand Down Expand Up @@ -95,7 +96,8 @@
vertical-align: top;
}

&:disabled {
&:disabled,
&[aria-disabled="true"] {
color: color(theme(button) tint(30%));
background: color(theme(button) shade(30%));
border-color: color(theme(button) shade(20%));
Expand All @@ -104,7 +106,8 @@
}

&.is-busy,
&.is-primary.is-busy:disabled {
&.is-busy:disabled,
&.is-busy[aria-disabled="true"] {
color: $white;
background-size: 100px 100%;
// Disable reason: This function call looks nicer when each argument is on its own line.
Expand Down Expand Up @@ -161,7 +164,7 @@
}

&:disabled,
&[disabled] {
&[aria-disabled="true"] {
cursor: default;
opacity: 0.3;
}
Expand Down

0 comments on commit 4badd04

Please sign in to comment.