Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 457f598

Browse files
committed
fix a11y issue collapsed code
1 parent 1527a0e commit 457f598

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/code/annotations/collapse.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export const collapseTrigger: AnnotationHandler = {
4444
name: 'CollapseTrigger',
4545
onlyIfAnnotated: true,
4646
AnnotatedLine: ({ annotation, ...props }) => (
47-
<CollapsibleTrigger className="group contents">
47+
<CollapsibleTrigger
48+
className="group contents"
49+
aria-label="Toggle show code"
50+
>
4851
<InnerLine merge={props} data={{ icon }} />
4952
</CollapsibleTrigger>
5053
),

0 commit comments

Comments
 (0)