No 'data-theme' attribute being set.
See original GitHub issuePerhaps this is more a tippy-specific issue (rather than vue-tippy), but a majority of the CSS seems to key off a data-theme
attribute being set. However no data-theme
attribute appears to be getting set regardless of what theme is chosen. Currently using:
"tippy.js": "^6.2.3",
"vue-tippy": "^4.4.0"
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:15 (5 by maintainers)
Top Results From Across the Web
Input checkbox not firing javascript for data-theme attribute
I'm trying to accomplish a few things to get dark mode working on my site. Use a checkbox to switch between light and...
Read more >Using data attributes - Learn web development | MDN
HTML is designed with extensibility in mind for data that should be associated with a particular element but need not have any defined ......
Read more >HTML data-* Attribute - W3Schools
The data-* attribute gives us the ability to embed custom data attributes on all HTML elements. The stored (custom) data can then be...
Read more >A Complete Guide to Data Attributes | CSS-Tricks
Everything you ever wanted to know about data attributes in HTML, CSS, and JavaScript.
Read more >Using attributes in templates | Theming Drupal
The job of the Attribute object is to store a set of HTML attributes, providing the developer helpful methods to interact with that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@KABBOUCHI I haven’t installed any other versions of tippy.js, I have only vue-tippy and this would not work:
for a very simple reason — tippy.js doesn’t exist in
node_modules/
directory of my project, it exists invue-tippy/node_modules/tippy.js/themes/light.css
.Please correct me if I’m wrong.
@KABBOUCHI Hello! If you import styles as you say, then it will not work. I have installed on the project both tippy (used for old parts of the system without vue.js) and vue-tippy (used for new parts). And I faced the same problem. If you import as written in your documentation, it won’t work.
You need to tweak the documentation.
@kovetskiy - you’re right! That’s right like that.