Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/@react-spectrum/s2/src/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const box = style<RenderProps>({
});

export const iconStyles = style({
pointerEvents: 'none',
'--iconPrimary': {
type: 'fill',
value: {
Expand Down
2 changes: 1 addition & 1 deletion starters/tailwind/src/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const boxStyles = tv({
}
});

const iconStyles = 'w-3.5 h-3.5 text-white group-disabled:text-neutral-400 dark:text-neutral-900 dark:group-disabled:text-neutral-600 forced-colors:text-[HighlightText]';
const iconStyles = 'w-3.5 h-3.5 text-white group-disabled:text-neutral-400 dark:text-neutral-900 dark:group-disabled:text-neutral-600 forced-colors:text-[HighlightText] pointer-events-none';

export function Checkbox(props: CheckboxProps) {
return (
Expand Down