Enhanced switch A11Y
> > Co-authored-by: Minybol <aimabol@skiff.com>
This commit is contained in:
parent
70ee2b9258
commit
1c06b84011
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,7 @@ function toggle(x) {
|
||||||
transition: inherit;
|
transition: inherit;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
outline: solid 2.5px var(--swutchOffFg);
|
||||||
|
|
||||||
> .knob {
|
> .knob {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -124,6 +125,7 @@ function toggle(x) {
|
||||||
> input:checked ~ .button {
|
> input:checked ~ .button {
|
||||||
background-color: var(--swutchOnBg) !important;
|
background-color: var(--swutchOnBg) !important;
|
||||||
border-color: var(--swutchOnBg) !important;
|
border-color: var(--swutchOnBg) !important;
|
||||||
|
outline: solid 2.5px var(--swutchOnFg);
|
||||||
|
|
||||||
> .knob {
|
> .knob {
|
||||||
left: 12px;
|
left: 12px;
|
||||||
|
|
Loading…
Reference in a new issue