className does not seem to work
See original GitHub issueHi, maybe I didn’t understand something in the docs, but when I pass the options of my toast:
this.$toasted.show('New user added.', {duration: 1000, className: 'toasts'})
duration works, className has no effect, while if I edit it with containerClass it works:
this.$toasted.show('New user added.', {duration: 1000, containerClass: 'toasts'})
anybody can tell me why? I am using @nuxtjs/toast but I tested it also using pure vue-toasted.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
ClassName styles not working in react - Stack Overflow
I am using webpack style and css loaders so it should allow me to require/import my styles straight into my jsx and handle...
Read more >className not working without using styles #110 - GitHub
It seems that the compiler was not able to recognize className = "". If I define the body{} by import "./index.css" , it...
Read more >How to fix className styles not working in React and JavaScript
In this tutorial we can resolve className styles not working in React and JavaScript.Just rename the the css or scss file to filename.module ......
Read more >className doesn't seem to work — DataTables forums
I have been trying using the className option with no success. Here is what I have: "columnDefs": [ {"className": "semi-bold", "targets": [2]}
Read more >Why you have to use className in React, but not in Preact?
The only reason behind the fact that it uses className over class is that the class is a reserved keyword in JavaScript and...
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 FreeTop 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
Top GitHub Comments
I was having the same issue as you guys. After reading this I did a little testing and by blanking the theme with say
theme: 'none'
I was able to then use my tailwind class as I wanted to with sayclassName: 'bg-red-500'
happy days 😃
You can override the style by increasing the specificity of the selector rather than using
!important
, for example: