This addresses a user complaint about Tooltip staying in DOM even when not visible. This is normally necessary for ARIA to work, but since IconButton uses ariaStrategy='none', we can remove the DOM element for this one specific scenario.
Testing
Manually verified in dev tools that the tooltip element is removed from DOM when it's not visible. Added a unit test for it too.
Changes
This addresses a user complaint about
Tooltip
staying in DOM even when not visible. This is normally necessary for ARIA to work, but sinceIconButton
usesariaStrategy='none'
, we can remove the DOM element for this one specific scenario.Testing
Manually verified in dev tools that the tooltip element is removed from DOM when it's not visible. Added a unit test for it too.
Docs
Added changeset.