Add :active state to radio and checkbox inputs
This commit is contained in:
parent
6f3ca5b6b1
commit
747288d0d1
1 changed files with 8 additions and 0 deletions
|
|
@ -290,6 +290,10 @@ input[type="radio"] + label::before {
|
||||||
background: svg-load("./icon/radio-border.svg");
|
background: svg-load("./icon/radio-border.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type="radio"]:active + label::before {
|
||||||
|
background: svg-load("./icon/radio-border-disabled.svg");
|
||||||
|
}
|
||||||
|
|
||||||
input[type="radio"]:checked + label::after {
|
input[type="radio"]:checked + label::after {
|
||||||
content: "";
|
content: "";
|
||||||
display: block;
|
display: block;
|
||||||
|
|
@ -331,6 +335,10 @@ input[type="checkbox"] + label::before {
|
||||||
margin-right: var(--radio-label-spacing);
|
margin-right: var(--radio-label-spacing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"]:active + label::before {
|
||||||
|
background: var(--surface);
|
||||||
|
}
|
||||||
|
|
||||||
input[type="checkbox"]:checked + label::after {
|
input[type="checkbox"]:checked + label::after {
|
||||||
content: "";
|
content: "";
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue