Skip to content

@sl-design-system/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Oct 10:56
· 36 commits to main since this release
a99cb93

Patch Changes

  • #1599 4714b36 - Fix logic to not just link based on aria-describedby, but also on aria-labelledby

  • #1588 3ce1a3b - Make the lazy tooltip smarter when it comes to determining which context to use to create the <sl-tooltip> element

    With this change, when the tooltip is lazily created, it checks if the target element has a shadow root. If it does, it uses the shadow root to create the tooltip custom element. If it doesn't, it uses the root node of the target element. If there is no parent custom element, then getRootNode() will return the document, so it will do document.createElement('sl-tooltip').

    After createElement('sl-tooltip') it then checks if the tooltip has a shadow root itself. If it doesn't, it means the tooltip custom element wasn't defined. When that happens, it will log a warning on the console.

  • Updated dependencies [4714b36, ebe4c8a, 33fd543]: