We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f2a9ff commit b968af6Copy full SHA for b968af6
lib/interactive/check/Checkbox.tsx
@@ -24,14 +24,16 @@ export function Checkbox(p: CheckboxProps) {
24
type="checkbox"
25
checked={p.checked}
26
onChange={(e) => p.onChange(e.currentTarget.checked)}
27
- class="sr-only"
+ class="sr-only invisible"
28
disabled={p.disabled}
29
aria-describedby={p.id ? `${p.id}-error` : undefined}
30
/>
31
<div
32
onClick={handleToggle}
33
class={classMerge(
34
- "mt-0.5 size-6 cursor-pointer flex items-center justify-center rounded", // layout + sizing + interaction
+ "mt-0.5 size-6", // sizing + interaction
35
+ "cursor-pointer", // cursor
36
+ "flex items-center justify-center", // layout children
37
p.disabled && "cursor-not-allowed opacity-50", // disabled state
38
)}
39
role="checkbox"
0 commit comments