mirror of
https://github.com/primer/css.git
synced 2025-01-01 18:53:34 +03:00
Add aria-disabled=true
This commit is contained in:
parent
3f72b945d6
commit
24fd50a0f8
@ -50,7 +50,8 @@
|
||||
}
|
||||
|
||||
&:disabled,
|
||||
&.disabled {
|
||||
&.disabled,
|
||||
&[aria-disabled=true] {
|
||||
cursor: default;
|
||||
// Repeat `background-position` because `:hover`
|
||||
background-position: 0 0;
|
||||
@ -130,7 +131,8 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
&:disabled,
|
||||
&[aria-disabled=true] {
|
||||
&,
|
||||
&:hover {
|
||||
// stylelint-disable-next-line primer/colors
|
||||
@ -181,7 +183,8 @@
|
||||
|
||||
&:hover { color: $text-blue; }
|
||||
|
||||
&.disabled {
|
||||
&.disabled,
|
||||
&[aria-disabled=true] {
|
||||
// stylelint-disable-next-line primer/colors
|
||||
color: $gray-400;
|
||||
cursor: default;
|
||||
|
@ -29,7 +29,8 @@
|
||||
}
|
||||
|
||||
&:disabled,
|
||||
&.disabled {
|
||||
&.disabled,
|
||||
&[aria-disabled=true] {
|
||||
pointer-events: none; // Disable hover styles
|
||||
cursor: default;
|
||||
opacity: 0.65;
|
||||
|
@ -58,8 +58,10 @@
|
||||
|
||||
.gap,
|
||||
.disabled,
|
||||
[aria-disabled=true],
|
||||
.gap:hover,
|
||||
.disabled:hover {
|
||||
.disabled:hover,
|
||||
[aria-disabled=true]:hover {
|
||||
// stylelint-disable-next-line primer/colors
|
||||
color: $gray-300;
|
||||
cursor: default;
|
||||
|
@ -30,7 +30,8 @@
|
||||
}
|
||||
|
||||
&:disabled,
|
||||
&.disabled {
|
||||
&.disabled,
|
||||
&[aria-disabled=true] {
|
||||
color: rgba($color, 0.4);
|
||||
background-color: $bg2;
|
||||
background-image: none;
|
||||
@ -63,7 +64,8 @@
|
||||
}
|
||||
|
||||
&:disabled,
|
||||
&.disabled {
|
||||
&.disabled,
|
||||
&[aria-disabled=true] {
|
||||
color: rgba($color, 0.75);
|
||||
background-color: mix($bg2, $white, 50%);
|
||||
background-image: none;
|
||||
@ -110,7 +112,8 @@
|
||||
}
|
||||
|
||||
&:disabled,
|
||||
&.disabled {
|
||||
&.disabled,
|
||||
&[aria-disabled=true] {
|
||||
color: rgba($color, 0.4);
|
||||
background-color: $bg2;
|
||||
background-image: none;
|
||||
@ -150,7 +153,8 @@
|
||||
}
|
||||
|
||||
&:disabled,
|
||||
&.disabled {
|
||||
&.disabled,
|
||||
&[aria-disabled=true] {
|
||||
color: $black-fade-30;
|
||||
background-color: $bg-white;
|
||||
border-color: $black-fade-15;
|
||||
|
Loading…
Reference in New Issue
Block a user