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
[x] I have included a change request file using $ yarn change
[x] I have added tests for my changes.
[x] I have tested my changes.
[ ] I have updated the project documentation to reflect my changes.
[ ] I have read the CONTRIBUTING documentation and followed the standards for this project.
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
$ yarn change
Component-specific