Closed domyen closed 3 years ago
There is some logic to this, I believe. A little while back, Jimmy updated WithTooltip
to render a button already for accessibility reasons. You can see that play out here:
The general idea was that you should be able to tab to the element and hit enter to open/close the tooltip. Unless you explicitly pass in a "tagName" to override the default rendering of a button
, the component already renders a button for you. With that in mind, it doesn't really make sense to me to render another button as a child of that. Thoughts?
That's helpful context! Closing now.
The tooltip stories should use buttons not divs.