We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3913303 commit da1f851Copy full SHA for da1f851
1 file changed
packages/ui-components/src/components/toggle-switch/toggle-switch.tsx
@@ -65,9 +65,9 @@ const ToggleSwitch = ({
65
value={option.value}
66
size="xs"
67
className={cn('text-sm transition-colors border-0', {
68
- 'px-5 h-[42px] rounded-[40px] font-medium aria-checked:bg-primary-200 aria-checked:text-background':
+ 'px-5 h-[42px] rounded-[40px] font-medium data-[state=on]:bg-primary-200 data-[state=on]:text-background':
69
variant === 'pill',
70
- 'w-[66px] px-2 py-1 rounded-[4px] font-normal aria-checked:bg-gray-200 dark:aria-checked:bg-gray-800':
+ 'w-[66px] px-2 py-1 rounded-[4px] font-normal data-[state=on]:bg-gray-200 dark:data-[state=on]:bg-gray-800':
71
variant !== 'pill',
72
})}
73
>
0 commit comments