Skip to content

Commit e38bce2

Browse files
committed
fix(ui-focusable): make screenreader annouce Tooltip in Focusable example by providing aria props
INSTUI-4313
1 parent f08c7ad commit e38bce2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ui-focusable/src/Focusable/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: example
1515
console.log(options)
1616
return <span>
1717
<div>
18-
<Button>Focus me!</Button>
18+
<Button aria-labelledby="focusable-example1-button focusable-example1-tooltip" id="focusable-example1-button">Focus me!</Button>
1919
</div>
2020
{options.focused && (
2121
<ContextView
@@ -26,6 +26,8 @@ type: example
2626
padding="small"
2727
borderWidth="small"
2828
display="block"
29+
id="focusable-example1-tooltip"
30+
role="tooltip"
2931
>
3032
I&#39;m focused!
3133
</ContextView>

0 commit comments

Comments
 (0)