Skip to content

Commit

Permalink
Fix focus rings not appearing on checkboxes and radio buttons. (#4345)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding authored Oct 28, 2024
1 parent 218034c commit 0730eb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-ears-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@salt-ds/core": patch
---

Fixed focus rings not appearing on Checkbox or Radio Button.
1 change: 1 addition & 0 deletions packages/core/src/checkbox/Checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
outline: var(--saltCheckbox-outline, var(--salt-focused-outline));
border-color: var(--salt-selectable-borderColor-hover);
color: var(--salt-selectable-foreground-hover);
clip-path: unset;
}

.saltCheckbox-input:focus-visible + .saltCheckboxIcon-checked {
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/radio-button/RadioButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
outline-offset: var(--salt-focused-outlineOffset);
border-color: var(--salt-selectable-borderColor-hover);
color: var(--salt-selectable-foreground-hover);
clip-path: unset;
}

.saltRadioButton-input:focus-visible + .saltRadioButtonIcon-checked {
Expand Down

0 comments on commit 0730eb0

Please sign in to comment.