Skip to content

Commit

Permalink
fix(css): let togglegroup specify the inner button's radius for easie…
Browse files Browse the repository at this point in the history
…r overriding
  • Loading branch information
unekinn committed Oct 17, 2024
1 parent f3376c8 commit 96d2bf0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/css/togglegroup.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
--dsc-togglegroup-background: var(--ds-color-neutral-background-default);
--dsc-togglegroup-border: var(--ds-border-width-default) solid var(--ds-color-neutral-border-default);
--dsc-togglegroup-padding: var(--ds-spacing-1);
--dsc-togglegroup-border-radius: var(--ds-border-radius-default);

background: var(--dsc-togglegroup-background);
border-radius: calc(var(--ds-border-radius-default) + var(--dsc-togglegroup-padding));
border-radius: calc(var(--dsc-togglegroup-border-radius) + var(--dsc-togglegroup-padding));
border: var(--dsc-togglegroup-border);
display: grid;
gap: var(--dsc-togglegroup-padding);
Expand All @@ -13,4 +14,8 @@
height: fit-content;
padding: var(--dsc-togglegroup-padding);
width: fit-content;

button {
border-radius: var(--dsc-togglegroup-border-radius);
}
}

0 comments on commit 96d2bf0

Please sign in to comment.