Skip to content

Commit 7a85d9b

Browse files
committed
fix(checkbox): typos
1 parent 634e5bc commit 7a85d9b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

apps/website/src/routes/docs/headless/checkbox/examples/hero.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ import { Checkbox } from '@qwik-ui/headless';
33
export default component$(() => {
44
return (
55
<>
6-
<Checkbox.Root class="flex items-center gap-3 border-2 border-black p-2 ">
6+
<Checkbox.Root id="test" class="flex items-center gap-3 border-2 border-black p-2 ">
77
<Checkbox.Indicator class="flex h-[25px] w-[25px] items-center justify-center bg-slate-600">
88
99
</Checkbox.Indicator>
10-
I have read the README file
1110
</Checkbox.Root>
11+
<label for="test">I work</label>
12+
<div>
13+
<div role="checkbox" id="test2" />
14+
<label for="test2">testhere</label>
15+
</div>
1216
</>
1317
);
1418
});

packages/kit-headless/src/components/checkbox/checklist.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const Checklist: Component<CheckListProps> = (props: CheckListProps) => {
4343
Object.assign(typedProps, { _useCheckListContext: true });
4444
checkArr.push(child);
4545
// TODO: fix this if hell by making fn
46-
if (!typedProps.checkList) {
46+
if (!typedProps.checklist) {
4747
checklistChilds.push(child);
4848

4949
if (typedProps.id != undefined) {

packages/kit-headless/src/components/checkbox/context-id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Signal, createContextId } from '@builder.io/qwik';
2-
import { TriBool } from './checklist-context-wrapper';
2+
import { TriBool } from '../checklist';
33

44
export type ArrSigs = Signal<boolean>[];
55
type CheckContextObj = {

0 commit comments

Comments
 (0)