Skip to content

Commit c1162eb

Browse files
authored
fix: only highlight checkbox on hover when checkbox is enabled (coder#17526)
resolves coder#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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy