Skip to content

Commit

Permalink
fix(ui-focusable): make screenreader annouce Tooltip in Focusable exa…
Browse files Browse the repository at this point in the history
…mple by providing aria props

INSTUI-4313
  • Loading branch information
ToMESSKa committed Feb 14, 2025
1 parent e37aee9 commit a3cb401
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui-focusable/src/Focusable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: example
console.log(options)
return <span>
<div>
<Button>Focus me!</Button>
<Button aria-labelledby="focusable-example1-button focusable-example1-tooltip" id="focusable-example1-button">Focus me!</Button>
</div>
{options.focused && (
<ContextView
Expand All @@ -26,6 +26,8 @@ type: example
padding="small"
borderWidth="small"
display="block"
id="focusable-example1-tooltip"
role="tooltip"
>
I&#39;m focused!
</ContextView>
Expand Down

0 comments on commit a3cb401

Please sign in to comment.