Skip to content

Commit

Permalink
fix: use component height token in Switch (#3995)
Browse files Browse the repository at this point in the history
* fix: use component height token in `Switch`

* Create nervous-maps-double.md
  • Loading branch information
sebald authored Jul 18, 2024
1 parent 652d0e3 commit 27bb054
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-maps-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marigold/theme-core": patch
---

fix: use component height token in `Switch`
4 changes: 2 additions & 2 deletions themes/theme-core/src/components/Switch.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { ThemeComponent, cva } from '@marigold/system';
export const Switch: ThemeComponent<'Switch'> = {
container: cva('justify-start'),
track: cva([
'h-[22px]',
'h-component',
'bg-bg-inverted border-border-inverted border border-solid',
'group-selected/switch:bg-bg-selected-input group-selected/switch:border-border-selected',
'group-disabled/switch:bg-bg-base-disabled group-disabled/switch:border-border-base',
]),
thumb: cva(['size-5', 'bg-bg-base']),
thumb: cva(['size-[22px]', 'bg-bg-base']),
};

0 comments on commit 27bb054

Please sign in to comment.