Skip to content

Commit e7a24cf

Browse files
committed
fix(react): drop remaining dead dark: aria-invalid utility
The dark: variant is gated on a .dark class the app never sets, so dark:aria-invalid:ring-destructive/40 never applied. Removing it is a no-op at runtime and keeps the component free of dead dark: utilities.
1 parent cb21525 commit e7a24cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react/src/components/native-select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function NativeSelect({
2828
className={cn(
2929
"h-9 w-full min-w-0 appearance-none rounded-md border border-input bg-popover text-popover-foreground px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground hover:bg-accent disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1",
3030
"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
31-
"aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
31+
"aria-invalid:border-destructive aria-invalid:ring-destructive/20",
3232
className,
3333
)}
3434
{...props}

0 commit comments

Comments
 (0)