mirror of
https://github.com/picocss/pico.git
synced 2025-04-23 18:06:14 -04:00
refactor: disabled checkboxes and radios without :has
This commit is contained in:
parent
e022c7098e
commit
dd799056c7
2 changed files with 6 additions and 15 deletions
|
@ -220,6 +220,7 @@
|
|||
input:not([type="submit"], [type="button"], [type="reset"])[disabled],
|
||||
select[disabled],
|
||||
textarea[disabled],
|
||||
label[aria-disabled="true"],
|
||||
:where(fieldset[disabled])
|
||||
:is(input:not([type="submit"], [type="button"], [type="reset"]), select, textarea) {
|
||||
#{$✨}background-color: var(#{$✨}form-element-disabled-background-color);
|
||||
|
@ -228,6 +229,10 @@
|
|||
pointer-events: none;
|
||||
}
|
||||
|
||||
label[aria-disabled="true"] input[disabled] {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
// Aria-invalid
|
||||
:where(input, select, textarea) {
|
||||
&:not(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue