Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1162eb

Browse files
authored
fix: only highlight checkbox on hover when checkbox is enabled (#17526)
resolves #17503
1 parent 36a72a2 commit c1162eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/components/Checkbox/Checkbox.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const Checkbox = React.forwardRef<
2424
disabled:cursor-not-allowed disabled:bg-surface-primary disabled:data-[state=checked]:bg-surface-tertiary
2525
data-[state=unchecked]:bg-surface-primary
2626
data-[state=checked]:bg-surface-invert-primary data-[state=checked]:text-content-invert
27-
hover:border-border-hover hover:data-[state=checked]:bg-surface-invert-secondary`,
27+
hover:enabled:border-border-hover hover:data-[state=checked]:bg-surface-invert-secondary`,
2828
className,
2929
)}
3030
{...props}

0 commit comments

Comments
 (0)