Skip to content

Commit

Permalink
Update Checkbox and Radio Button styling to be more robust (#4078)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding authored Sep 11, 2024
1 parent 3b8720d commit 3e49154
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-pianos-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@salt-ds/core": patch
---

Updated Checkbox and Radio Button to have more robust styling.
2 changes: 2 additions & 0 deletions packages/core/src/checkbox/CheckboxIcon.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
position: relative;
--saltIcon-size: 100%;
display: flex;
/* Using overflow:hidden here causes a thin white line */
clip-path: border-box;
box-sizing: border-box;
}

Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/radio-button/RadioButtonIcon.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
background: var(--salt-container-primary-background);
--saltIcon-size: 100%;
display: flex;
/* Using overflow:hidden here causes a thin white line */
clip-path: border-box;
box-sizing: border-box;
}

.saltRadioButton:hover .saltRadioButtonIcon {
Expand Down

0 comments on commit 3e49154

Please sign in to comment.