You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm upgrading a website to @headlessui/react v2. I use @tailwindcss/forms. The new method of checkboxing-ing uses divs, rather than inputs of type checkbox, so the checkbox styling from @tailwindcss/forms no longer works. Is there a new way of applying the styles?
I looked, and it seems that there isn't a supported way to emulate states, though I can apply the form-checkbox class to get some styles.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I'm upgrading a website to
@headlessui/react
v2. I use@tailwindcss/forms
. The new method of checkboxing-ing usesdiv
s, rather than inputs of typecheckbox
, so the checkbox styling from@tailwindcss/forms
no longer works. Is there a new way of applying the styles?I looked, and it seems that there isn't a supported way to emulate states, though I can apply the
form-checkbox
class to get some styles.Example:
If you hit check, it is selected, but it doesn't show it.
Is there a way to work around this?
Note
I am using Preact via Fresh, but that doesn't seem to be related.
Beta Was this translation helpful? Give feedback.
All reactions