microsoft / fast

The adaptive interface system for modern web experiences.
https://www.fast.design
Other
9.23k stars 589 forks source link

Feat: tooltip anchor can be set with element instance as well as id #6928

Closed scomea closed 5 months ago

scomea commented 5 months ago

The anchor element used by tooltip can currently only be set via an anchor reference. This is limiting particularly in cross shadow dom scenarios. This change exposes anchorElement as a public api where developers can set the tooltip anchor programmatically by passing an element instance.

🎫 Issues

ad hoc

📑 Test Plan

Added a basic swapping test

✅ Checklist

General

Component-specific