aboutsummaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
Diffstat (limited to 'src/console')
-rw-r--r--src/console/components/console/CompletionItem.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/console/components/console/CompletionItem.tsx b/src/console/components/console/CompletionItem.tsx
index 76db5b5..46cd95c 100644
--- a/src/console/components/console/CompletionItem.tsx
+++ b/src/console/components/console/CompletionItem.tsx
@@ -49,8 +49,12 @@ interface Props {
const CompletionItem: React.FC<React.HTMLAttributes<HTMLElement> & Props> = (
props
) => (
- <Container icon={props.icon || ""} {...props}>
- <Caption>{props.caption}</Caption>
+ <Container
+ icon={props.icon || ""}
+ aria-labelledby={`completion-item-${props.caption}`}
+ {...props}
+ >
+ <Caption id={`completion-item-${props.caption}`}>{props.caption}</Caption>
<Description>{props.url}</Description>
</Container>
);