[tooltip] add support for native popover API #1984
brianferry
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
rh-tooltip
currently usesfloating-ui
in 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
Chrome
but not inSafari
orFirefox
. 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:
Beta Was this translation helpful? Give feedback.
All reactions