diff --git a/docs/app/docs-infra/components/code-highlighter/demos/code-highlight-idle/BasicCode.tsx b/docs/app/docs-infra/components/code-highlighter/demos/code-highlight-idle/BasicCode.tsx index a75d04ead..96be59ce7 100644 --- a/docs/app/docs-infra/components/code-highlighter/demos/code-highlight-idle/BasicCode.tsx +++ b/docs/app/docs-infra/components/code-highlighter/demos/code-highlight-idle/BasicCode.tsx @@ -2,5 +2,5 @@ import * as React from 'react'; import { Code } from './Code'; export function BasicCode() { - return {`console.log('Hello, world!');`}; + return {`console.log('Hello, world!');`}; } diff --git a/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback-all-files/DemoContentLoading.tsx b/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback-all-files/DemoContentLoading.tsx index 936980ce8..83422fa5d 100644 --- a/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback-all-files/DemoContentLoading.tsx +++ b/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback-all-files/DemoContentLoading.tsx @@ -25,8 +25,8 @@ export function DemoContentLoading(props: ContentLoadingProps) { return (
- {Object.keys(props.extraSource || {}).map((slug) => ( - + {Object.keys(props.extraSource || {}).map((fileName) => ( + ))}
{props.component}
diff --git a/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback-all-variants/DemoContentLoading.tsx b/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback-all-variants/DemoContentLoading.tsx index 069c8d4aa..88db9f672 100644 --- a/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback-all-variants/DemoContentLoading.tsx +++ b/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback-all-variants/DemoContentLoading.tsx @@ -38,8 +38,8 @@ export function DemoContentLoading(props: ContentLoadingProps) { return (
- {Object.keys(props.extraSource || {}).map((slug) => ( - + {Object.keys(props.extraSource || {}).map((fileName) => ( + ))}
{props.component}
diff --git a/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback/DemoContentLoading.tsx b/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback/DemoContentLoading.tsx index c9f806ced..3ac2e36fc 100644 --- a/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback/DemoContentLoading.tsx +++ b/docs/app/docs-infra/components/code-highlighter/demos/demo-fallback/DemoContentLoading.tsx @@ -24,8 +24,8 @@ export function DemoContentLoading(props: ContentLoadingProps) { return (
- {Object.keys(props.extraSource || {}).map((slug) => ( - + {Object.keys(props.extraSource || {}).map((fileName) => ( + ))}
{props.component}
diff --git a/docs/app/docs-infra/components/code-highlighter/demos/demo/demo-basic/index.ts b/docs/app/docs-infra/components/code-highlighter/demos/demo/demo-basic/index.ts index 6406561d5..8eb2a01e1 100644 --- a/docs/app/docs-infra/components/code-highlighter/demos/demo/demo-basic/index.ts +++ b/docs/app/docs-infra/components/code-highlighter/demos/demo/demo-basic/index.ts @@ -1,4 +1,6 @@ import { CheckboxBasic } from './CheckboxBasic'; import { createDemo } from '../../createDemo'; -export const DemoCheckboxBasic = createDemo(import.meta.url, CheckboxBasic); +export const DemoCheckboxBasic = createDemo(import.meta.url, CheckboxBasic, { + slug: 'interactive-demo-basic', +}); diff --git a/docs/app/docs-infra/hooks/use-copier/demos/text-input-copy/TextInputCopy.tsx b/docs/app/docs-infra/hooks/use-copier/demos/text-input-copy/TextInputCopy.tsx index a9e2719bc..d7fc7c301 100644 --- a/docs/app/docs-infra/hooks/use-copier/demos/text-input-copy/TextInputCopy.tsx +++ b/docs/app/docs-infra/hooks/use-copier/demos/text-input-copy/TextInputCopy.tsx @@ -15,6 +15,7 @@ export function TextInputCopy() { onChange={(event) => setText(event.target.value)} className={styles.input} placeholder="Enter text to copy..." + aria-label="Text to copy" />
diff --git a/docs/components/Checkbox/index.tsx b/docs/components/Checkbox/index.tsx index 722154fb4..b290857f3 100644 --- a/docs/components/Checkbox/index.tsx +++ b/docs/components/Checkbox/index.tsx @@ -14,14 +14,16 @@ type CheckboxProps = { export function Checkbox({ defaultChecked, name = 'checkbox', className, style }: CheckboxProps) { const [checked, setChecked] = React.useState(defaultChecked); + const id = React.useId(); + const inputId = `${id}-${name}-input`; const onChange = React.useCallback(() => { setChecked((prev) => !prev); }, []); return ( -