Fix radio button focus

This commit is contained in:
Chocobozzz 2023-03-02 11:05:25 +01:00
parent 15bed364fb
commit 3d72491874
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,7 @@
cursor: pointer;
padding: 0.5rem 2rem 0.5rem 1rem;
&:focus + span {
&:focus-visible + span {
position: absolute;
top: -2px;
left: -2px;

View File

@ -57,6 +57,10 @@
opacity: 1;
transform: scale(1);
}
[type=radio]:focus-visible + label::before {
outline: 2px solid $main-font-color;
}
}
// ---------------------------------------------------------------------------