diff --git a/packages/frontend/src/components/shared/SegmentedControls/SegmentedControlItem.tsx b/packages/frontend/src/components/shared/SegmentedControls/SegmentedControlItem.tsx index aee2c883..3fe5bda6 100644 --- a/packages/frontend/src/components/shared/SegmentedControls/SegmentedControlItem.tsx +++ b/packages/frontend/src/components/shared/SegmentedControls/SegmentedControlItem.tsx @@ -55,8 +55,7 @@ const SegmentedControlItem = forwardRef< }, ref, ) => { - const iconSize = size === 'sm' ? 16 : 20; - const { item } = segmentedControlsTheme({ size, type }); + const { item, icon } = segmentedControlsTheme({ size, type }); return ( ); }, diff --git a/packages/frontend/src/components/shared/SegmentedControls/SegmentedControls.theme.ts b/packages/frontend/src/components/shared/SegmentedControls/SegmentedControls.theme.ts index 521cab9b..ed54a072 100644 --- a/packages/frontend/src/components/shared/SegmentedControls/SegmentedControls.theme.ts +++ b/packages/frontend/src/components/shared/SegmentedControls/SegmentedControls.theme.ts @@ -38,14 +38,17 @@ export const segmentedControlsTheme = tv({ 'data-[active=true]:shadow-field', 'data-[active=true]:hover:bg-controls-tertiary-hovered', ], + icon: [], }, variants: { size: { sm: { item: ['px-3', 'py-2', 'text-xs'], + icon: ['h-4', 'w-4'], }, md: { item: ['px-4', 'py-3', 'text-sm', 'tracking-[-0.006em]'], + icon: ['h-5', 'w-5'], }, }, type: {