rouen: give visible focus to custom radio buttons & checkboxes
This commit is contained in:
parent
7a4c5fa153
commit
fa239cbfad
|
@ -278,6 +278,13 @@ div.RadiobuttonsWidget div.content label {
|
|||
& input[type="radio"] {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
& + span {
|
||||
display: block;
|
||||
}
|
||||
&:focus-visible + span {
|
||||
outline: 2px solid $red;
|
||||
outline-offset: 5px;
|
||||
}
|
||||
& + span::before {
|
||||
@extend %icon-common;
|
||||
content: $icon-mars-circle;
|
||||
|
@ -294,6 +301,10 @@ div.CheckboxesWidget div.content label {
|
|||
& input[type="checkbox"] {
|
||||
left: -99999999px;
|
||||
position: absolute;
|
||||
&:focus-visible + span {
|
||||
outline: 2px solid $red;
|
||||
outline-offset: 5px;
|
||||
}
|
||||
& + span::before {
|
||||
@extend %icon-common;
|
||||
content: $icon-mars-square;
|
||||
|
|
Loading…
Reference in New Issue