I think there should be classes for "default" behaviour #2426
Closed
Billuc
started this conversation in
Ideas / feature requests
Replies: 2 comments 1 reply
-
There is a similar discussion here : #2253 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Tailwind CSS has responsive prefixes like This approach is better than reseting the style on specific size. Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have been using DaisyUI for a few months and I think it's good.
However, there is one thing that is annoying me a bit. It is that, for some components, there is a class to modify the look or behaviour but there is no way to 'cancel' that class.
An example might be better :
I have a button and I want that button to be a circle on small devices (because I have only an icon), but I want the default look on computer screens (because I have an icon + a text).
The code would look something like this :
If it were the other way (default on small devices and circle on big ones), I could do this :
I think it might be useful to have a 'btn-auto' class or something similar to revert to default behaviour/look.
'btn-circle' is an example, there are others I have in mind like 'drawer-end'.
What do you think ?
Beta Was this translation helpful? Give feedback.
All reactions