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

Add custom Tooltip classes #316

Closed
swashbuck opened this issue Sep 10, 2024 · 1 comment · Fixed by #317
Closed

Add custom Tooltip classes #316

swashbuck opened this issue Sep 10, 2024 · 1 comment · Fixed by #317

Comments

@swashbuck
Copy link
Contributor

Subject of the enhancement

It would be useful to be able to add classes to the _tooltip object for each item. Currently, you can add classes but it removes the existing hotgraphic__pin-tooltip class.

const tooltipConfig = {
_isStatic: hasStaticTooltips,
...child.toJSON(),
_classes: [ 'hotgraphic__pin-tooltip' ],
...tooltip

An example use case would be if you are using static tooltips and one of the tooltips needs to use an inverted color due to the placement on the image.

"_tooltip": {
    "_isEnabled": true,
    "text": "I'm on a dark background",
    "_classes": "white"
}
@swashbuck swashbuck self-assigned this Sep 10, 2024
github-actions bot pushed a commit that referenced this issue Sep 30, 2024
## [6.13.5](v6.13.4...v6.13.5) (2024-09-30)

### Fix

* Allow additional custom classes on tooltips (fixes #316) (#317) ([af89644](af89644)), closes [#316](#316) [#317](#317)
Copy link

🎉 This issue has been resolved in version 6.13.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

1 participant