Skip to content

Commit

Permalink
fix(accessibility): allow focus on radio inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWeb committed Sep 11, 2023
1 parent 55b6538 commit ddcb5c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions packages/Form/Input/checkbox/src/checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@

&__input-checkbox {
position: absolute;
z-index: -1;
visibility: hidden;
opacity: 0;

&:checked + .af-form__label {
.af-form__indicator {
Expand Down Expand Up @@ -107,8 +106,7 @@

.af-form__input-checkbox {
position: absolute;
z-index: -1;
visibility: hidden;
opacity: 0;

&:checked + .af-form__label {
background-color: $color-azur;
Expand Down
6 changes: 2 additions & 4 deletions packages/Form/Input/choice/src/radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@

.af-form__input-radio {
position: absolute;
z-index: -1;
visibility: hidden;
opacity: 0;

&:checked + .af-form__label {
&::after {
Expand Down Expand Up @@ -126,8 +125,7 @@

.af-form__input-radio {
position: absolute;
z-index: -1;
visibility: hidden;
opacity: 0;

&:checked + .af-form__label {
background-color: $color-azur;
Expand Down
6 changes: 2 additions & 4 deletions packages/Form/Input/radio/src/radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@

.af-form__input-radio {
position: absolute;
z-index: -1;
visibility: hidden;
opacity: 0;

&:checked + .af-form__label {
&::after {
Expand Down Expand Up @@ -126,8 +125,7 @@

.af-form__input-radio {
position: absolute;
z-index: -1;
visibility: hidden;
opacity: 0;

&:checked + .af-form__label {
background-color: $color-azur;
Expand Down

0 comments on commit ddcb5c9

Please sign in to comment.