-
Notifications
You must be signed in to change notification settings - Fork 225
Radio and Checkbox lose styling in prod mode #55
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
Comments
I fixed it with the release of tailwind-jit https://github.com/jacekschae/shadow-cljs-tailwindcss |
I'm seeing an issue that might be related to this, but am not 100% sure. When building for production specifically, checkboxes lose their SVG background due to what looks like an invalid data URI. The following is what I see in the browser style inspector... In development: [type='checkbox']:checked {
background-image: url(data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e);
} In production: [type=checkbox]:checked {
background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 10 1.414 NaN NaNlNaN NaNa1 1 0 1-1.414 NaN NaNlNaN NaNa1 1 0 11.414-1.414 NaN NaNlNaN NaN NaN NaNa1 1 0 11.414 0 NaN NaNz'/%3E%3C/svg%3E);
} No other styles are affected, from what I can tell. The This was tested using |
I'm seeing this same tailwind |
I experience this issue with strategy |
@jtormey @crenwick @jasonlimantoro If you were seeing this with the I've opened a PR for it here #72 . |
Having the same |
@adamwathan @chasegiunta i think this is still an issue. i am using forms 0.3.3 and am experiencing it. can this be re-opened? |
@cc1776 0.3.3 fixed the issue i was seeing with with a misspelled |
@chasegiunta thanks, upgrading cssnano did the trick! |
|
I'm wondering what i'm doing wrong 🤔. I have a form with
input
,radio
,select
, andcheckbox
elements. I know that my configuration with@tailwindcss/forms
is valid since in dev mode; all form elements are displayed correctly -- with styling.Yet when I run the production
I'm losing styling on
radio
andcheckbox
elements,select
seems to be not impacted and I'm wondering why?Output when running (all ok):
Output when running (radio and checkbox lose styling):
Any ideas or pointes what I could change to make this work would be appreciated.
The text was updated successfully, but these errors were encountered: