mirror of https://github.com/Chocobozzz/PeerTube
Fix input switch accessibility
parent
30ad7fdf69
commit
e2c7e58f42
|
@ -1,2 +1,2 @@
|
|||
<input type="checkbox" [checked]="checked" [name]="inputName" [id]="inputName" (change)="update()" [disabled]="preventUpdate" />
|
||||
<input type="checkbox" role="switch" [checked]="checked" [name]="inputName" [id]="inputName" (change)="update()" [disabled]="preventUpdate" />
|
||||
<label [for]="inputName" class="ms-auto">Toggle</label>
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
|
||||
input {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
top: -100px;
|
||||
left: -100px;
|
||||
|
||||
+ label {
|
||||
cursor: pointer;
|
||||
|
@ -41,4 +42,8 @@ input {
|
|||
transform: translateX(-100%);
|
||||
}
|
||||
}
|
||||
|
||||
&:focus-visible + label {
|
||||
outline: 2px solid;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue