You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click on the tooltip next to Text input (tooltip with no id) 1. Notice that the tooltip stays visible.
Click on the tooltip next to Text input (tooltip with no id) 2. Notice that the tooltip appears for a brief moment and then disappears.
This was discussed in this Slack thread, where it was suggested to add unique id props to each Tooltip. I tried this and it did fix the disappearing tooltip issue (play around with the Text input (tooltip with id) tooltips to see this), but it causes accessibility issues where you can no longer tab between text inputs (from tooltip to text input and so forth). In the case where tooltips do not have id props, tabbing is fine.
The text was updated successfully, but these errors were encountered:
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
When there are multiple tooltips and one tooltip is open, clicking on another tooltip causes the second tooltip to briefly appear and then disappear.
Yes, the
Tooltip
component.I expect the second tooltip to stay open after clicking on it.
Google Chrome Version 86.0.4240.193
carbon-components
: 10.23.2carbon-components-react
: 7.23.2Steps to reproduce the issue
See this sandbox: https://codesandbox.io/s/tooltips-kpcbk?file=/src/index.js
This was discussed in this Slack thread, where it was suggested to add unique
id
props to eachTooltip
. I tried this and it did fix the disappearing tooltip issue (play around with the Text input (tooltip with id) tooltips to see this), but it causes accessibility issues where you can no longer tab between text inputs (from tooltip to text input and so forth). In the case where tooltips do not haveid
props, tabbing is fine.The text was updated successfully, but these errors were encountered: