Closed domyen closed 3 years ago
@domyen re:
Add a prop that allows us to manually set the tabIndex of the wrapper component to -1
I think I added this a little while back:
I remember we hit a similar problem when working on the SB docs. Perhaps there are just some places we still need to update in the consumer apps.
Thanks, I didn't see that for some reason.
Describe the bug
When a tooltip has a
button
or ana
as the trigger it requires keyboard users to tab twice to activate the trigger.https://www.loom.com/share/1744473606a049e5aa0785252c12c3fa
Steps to reproduce the behavior
Expected behavior
When I tab, I go straight to the interactive element.
Ideas for paths forward
tabIndex
of the wrapper component to-1
a
orbutton
and passthrough the focus state (via tabIndex) or removerole="button"
.What do you think? @jsomsanith @kylesuss @winkerVSbecks