Skip to content

Commit

Permalink
Fix standalone ToggleButton corner radius
Browse files Browse the repository at this point in the history
  • Loading branch information
origami-z committed Sep 13, 2024
1 parent 2295601 commit 9dd4122
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/heavy-mice-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@salt-ds/core": patch
---

Fixed ToggleButton corner radius when not used within ToggleButtonGroup
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

.saltToggleButtonGroup-horizontal .saltToggleButton {
height: calc(var(--salt-size-base) - var(--salt-spacing-100));
border-radius: var(--salt-palette-corner-weaker, 0);
}

.saltToggleButtonGroup-vertical {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/toggle-button/ToggleButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
border-color: var(--salt-actionable-secondary-borderColor, transparent);
border-style: solid;
border-width: var(--salt-actionable-borderWidth, 0);
border-radius: var(--salt-palette-corner-weaker, 0);
border-radius: var(--salt-palette-corner-weak, 0);
height: var(--salt-size-base);
color: var(--salt-actionable-secondary-foreground);
text-transform: var(--salt-text-action-textTransform);
Expand Down

0 comments on commit 9dd4122

Please sign in to comment.