Skip to content

Commit

Permalink
Merge pull request #1804 from SpareBank1/develop_focus-border-kuin-vi…
Browse files Browse the repository at this point in the history
…d-tastatur-focus

fix(ffe-form): focus visible on focus styles radio block and radio sw…
  • Loading branch information
pethel authored Feb 23, 2024
2 parents f1e5715 + 2f10405 commit eebf501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ffe-form/less/radio-block.less
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
border: 5px solid var(--ffe-v-input-bg-color);
}

&:focus + .ffe-radio-block__content {
&:focus-visible + .ffe-radio-block__content {
box-shadow: 0 0 0 3px var(--ffe-v-input-bg-color),
0 0 0 5px var(--ffe-v-checkbox-focus-outline-color);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ffe-form/less/radio-switch.less
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
border-color: var(--ffe-g-secondary-color);
}

&:focus + .ffe-radio-switch {
&:focus-visible + .ffe-radio-switch {
box-shadow: 0 0 0 3px var(--ffe-v-input-bg-color),
0 0 0 5px var(--ffe-v-checkbox-focus-outline-color);
}
Expand Down

0 comments on commit eebf501

Please sign in to comment.