Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to customize font size, weight, etc. in VisTooltip? #451

Open
fromaline opened this issue Sep 27, 2024 · 2 comments
Open

How to customize font size, weight, etc. in VisTooltip? #451

fromaline opened this issue Sep 27, 2024 · 2 comments

Comments

@fromaline
Copy link

Hey!
First of all, thanks for the project! It's awesome!

One minor issue:
I can't figure out how to customize font size, weight, etc. inside VisTooltip. Is there a way to do it?

@lee00678
Copy link
Collaborator

lee00678 commented Oct 9, 2024

Hi @fromaline, you should be able to access all that with CSS properties. See attributes. You can also use things like strong when you create your tooltip div. See here

@rokotyan
Copy link
Contributor

rokotyan commented Oct 9, 2024

@fromaline check out the CSS variables section: https://unovis.dev/docs/auxiliary/Tooltip/#css-variables.

Alternatively, you can just pass your styles within the tooltip content: wrap it into a "div" and provide a class name or use the styles attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants