Accessibility focus checkboxes and radio boxes

This commit is contained in:
Jorik Schellekens 2020-07-28 16:08:25 +01:00
parent 749aaf0b54
commit fb953ade8e
3 changed files with 25 additions and 0 deletions

View file

@ -63,6 +63,7 @@ limitations under the License.
box-sizing: border-box;
height: $font-16px;
width: $font-16px;
margin-left: 1px; // For the highlight on focus
border: $font-1-5px solid $radio-circle-color;
border-radius: $font-16px;
@ -77,6 +78,12 @@ limitations under the License.
}
}
&.focus-visible {
& + div {
@mixin unreal-focus;
}
}
&:checked {
& + div {
border-color: $active-radio-circle-color;