Skip to content

How can I customize the positioning of the tooltip? #28

Answered by Th3S4mur41
FrontDevUmix asked this question in Q&A
Discussion options

You must be logged in to vote

Great question 😊

You can change the position of a tooltip or toggletip by setting the --tooltip-position variable to any valid position-area value.

Important

This will currently only work for chromium based browser at the moment, which is also why this is not documented yet

The latest version of the polyfill we need for Firefox and Safari has added support for position-area.

We are currently working on optimizing our code to the latest polyfill, but still need to check if the polyfill also supports using variables which would be necessary for this kind of customization.

As soon as the work is done, the updated documentation will reflect the update and include the customization options 😉

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by FrontDevUmix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants