Skip to content

Commit 154ebc6

Browse files
authored
Add tabIndex to make tooltip examples keyboard accessible (#4157)
1 parent 857b727 commit 154ebc6

File tree

1 file changed

+2
-2
lines changed
  • packages/react-core/src/components/Tooltip/examples

1 file changed

+2
-2
lines changed

packages/react-core/src/components/Tooltip/examples/Tooltip.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ BasicTooltip = () => (
2121
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id feugiat augue, nec fringilla turpis.</div>
2222
}
2323
>
24-
<span>I have a tooltip!</span>
24+
<span tabIndex="0">I have a tooltip!</span>
2525
</Tooltip>
2626
)
2727
```
@@ -37,7 +37,7 @@ LeftAlignedTooltip = () => (
3737
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id feugiat augue, nec fringilla turpis.</div>
3838
}
3939
>
40-
<span>I have a tooltip!</span>
40+
<span tabIndex="0">I have a tooltip!</span>
4141
</Tooltip>
4242
)
4343
```

0 commit comments

Comments
 (0)