Skip to content

Commit

Permalink
improve accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffroy Baccarini committed Nov 20, 2023
1 parent 5a43b1c commit c756f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/design-system/src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const Tooltip = ({ id, children, title, placement = 'top', ...rest }: Too
children,
{
...getReferenceProps(),
'aria-describedby': safeId,
...(title && { 'aria-describedby': safeId }),
},
floating.refs.setReference,
)}
Expand Down

0 comments on commit c756f3c

Please sign in to comment.