[tooltip] add support for native popover API #1984
brianferry
started this conversation in
Ideas
Replies: 1 comment
|
Correct me if I'm wrong, but we'll also need the anchor positioning css proposal in order to remove floating-ui? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
rh-tooltipcurrently usesfloating-uiin order to handle its tooltip implementation.In the effort of loading the least amount of JavaScript and the maximum about of browser support we should consider adding a version of the tooltip that uses the Popover API.
The reasoning for adding a version of the tooltip instead of rewriting the entire tooltip currently is browser support.
Currently, many of the popover features are available in
Chromebut not inSafariorFirefox. We could add a check for browser support and if available load the native HTML element version of the popover and have the floating-ui as a fallback for Safari and Firefox.Additional considerations:
All reactions