Skip to content

Commit 65609c6

Browse files
committed
fix: Update data-disabled selectors to data-[disabled]
1 parent 52ee85e commit 65609c6

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

core/vibes/soul/form/button-radio-group/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const ButtonRadioGroup = React.forwardRef<
7070
</Label>
7171
)}
7272
<RadioGroupPrimitive.Root
73-
{...rest}
73+
{...resdata-[disabled]:data-[disabled]:
7474
aria-labelledby={id}
7575
className="flex flex-wrap gap-2"
7676
ref={ref}

core/vibes/soul/form/card-radio-group/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const CardRadioGroup = React.forwardRef<
6767
return (
6868
<div className={clsx('space-y-2', className)}>
6969
{label !== undefined && label !== '' && (
70-
<Label colorScheme={colorScheme} id={id} required={required}>
70+
<Label data-[disabled]:olorScheme} id={id} data-[disabled]:ired}>
7171
{label}
7272
</Label>
7373
)}

core/vibes/soul/form/radio-group/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ RadioGroup.displayName = 'RadioGroup';
9898
* ```
9999
*/
100100
function RadioGroupItem({
101-
option,
101+
option,data-[disabled]:data-[disabled]:
102102
error = false,
103103
colorScheme = 'light',
104104
onOptionMouseEnter,

core/vibes/soul/form/rating-radio-group/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const RatingRadioGroup = React.forwardRef<
9999
return (
100100
<div className="relative" key={ratingValue}>
101101
<RadioGroupPrimitive.Item
102-
className={clsx(
102+
cladata-[disabled]:data-[disabled]:
103103
'peer sr-only',
104104
'data-disabled:pointer-events-none data-disabled:opacity-50 transition-colors focus-visible:outline-0 focus-visible:ring-2',
105105
{

core/vibes/soul/form/swatch-radio-group/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const SwatchRadioGroup = React.forwardRef<
8080
</Label>
8181
)}
8282
<RadioGroupPrimitive.Root
83-
{...rest}
83+
{...resdata-[disabled]:
8484
aria-labelledby={id}
8585
className="flex flex-wrap gap-1"
8686
ref={ref}

core/vibes/soul/form/switch/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const Switch = ({
4949
aria-busy={loading}
5050
checked={checked}
5151
className={clsx(
52-
'[&:not([data-loading])]:data-disabled:bg-contrast-100 data-disabled:cursor-not-allowed w-12 rounded-full border border-contrast-200 p-[3px] transition-colors duration-100 focus-visible:outline-none focus-visible:ring-2',
52+
'[&:not([data-loading])]:data-[disabled]:bg-contrast-100 data-[disabled]:cursor-not-allowed w-12 rounded-full border border-contrast-200 p-[3px] transition-colors duration-100 focus-visible:outline-none focus-visible:ring-2',
5353
)}
5454
data-loading={loading ? '' : undefined}
5555
disabled={disabled || loading}
@@ -59,7 +59,7 @@ export const Switch = ({
5959
>
6060
<SwitchPrimitive.Thumb
6161
className={clsx(
62-
'data-disabled:bg-contrast-200 relative block h-5 w-5 overflow-hidden rounded-full transition-transform duration-100 data-[state=checked]:translate-x-full data-[state=unchecked]:bg-contrast-200',
62+
'data-[disabled]:bg-contrast-200 relative block h-5 w-5 overflow-hidden rounded-full transition-transform duration-100 data-[state=checked]:translate-x-full data-[state=unchecked]:bg-contrast-200',
6363
{
6464
primary: 'bg-[var(--toggle-primary-background,hsl(var(--primary)))]',
6565
secondary: 'bg-[var(--toggle-secondary-background,hsl(var(--foreground)))]',

0 commit comments

Comments
 (0)