Skip to content

Commit da1f851

Browse files
author
Roman Snapko
committed
Replace aria-checked with data-[state=on] in ToggleSwitch styles
1 parent 3913303 commit da1f851

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/ui-components/src/components/toggle-switch/toggle-switch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ const ToggleSwitch = ({
6565
value={option.value}
6666
size="xs"
6767
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':
68+
'px-5 h-[42px] rounded-[40px] font-medium data-[state=on]:bg-primary-200 data-[state=on]:text-background':
6969
variant === 'pill',
70-
'w-[66px] px-2 py-1 rounded-[4px] font-normal aria-checked:bg-gray-200 dark:aria-checked:bg-gray-800':
70+
'w-[66px] px-2 py-1 rounded-[4px] font-normal data-[state=on]:bg-gray-200 dark:data-[state=on]:bg-gray-800':
7171
variant !== 'pill',
7272
})}
7373
>

0 commit comments

Comments
 (0)