Skip to content

Commit

Permalink
fix(styles): add focus ring to checkbox and radio button groups
Browse files Browse the repository at this point in the history
  • Loading branch information
alizedebray committed May 3, 2024
1 parent 179f493 commit 6dde8d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/two-mails-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Added missing focus ring on checkbox and radio button groups.
5 changes: 1 addition & 4 deletions packages/styles/src/components/button-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,5 @@
position: absolute;
clip: rect(0, 0, 0, 0);
pointer-events: none;

&:is(:focus-visible, :focus-within, .pretend-focus) + .btn {
outline: forms.$input-focus-outline-thickness solid var(--post-contrast-color);
}
@include utilities.focus-style('+ .btn');
}

0 comments on commit 6dde8d7

Please sign in to comment.