-
Notifications
You must be signed in to change notification settings - Fork 224
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
input should always default to [type='text'] styling. #127
Comments
input
as [type='text']
.input
should always default to [type='text']
styling.
input
should always default to [type='text']
styling.
Hey! It's a but unfortunate that we have to do this but this one is on purpose. If we applied these styles to other inputs that we don't explicitly style (like
A workaround for the minifier issue you've encountered would be to add |
Thank you for the workaround. Seems to work as intended, though the code generation is less optimal (a new and equivalent section is created for |
@thecrypticace @RobinMalfait would you consider adding an option to switch to a negation selector instead, for users who do not want the default Eg. /* Select <input /> elements without `type` */
input:not([type]) Or even reconsider this as the default, like this: input[type="text"], input:not([type]) We have an ESLint rule which bans |
Opened a PR for feedback for defaulting to |
What version of Tailwind CSS are you using?
v3.1.8
What build tool (or framework if it abstracts the build tool) are you using?
Using it with django-tailwind and django-minify-html. Under the hood Django Minify uses minify-html.
What version of Node.js are you using?
v18.7.0
What browser are you using?
Chrome
What operating system are you using?
MacOS
Reproduction URL
N/A
Describe your issue
Minify HTML replaces all
<input type="text" ...>
with simply<input ...>
sinceinput
's default style should always betext
.As it currently sits, Tailwind does not default this when generating the style sheet for
input
. Instead, it generates the following:input
should be included in the above styling.If this is not possible, is there any way to create a plugin in the
tailwind.config.js
file to appendinput
to the style mentioned above? Thanks!Relates to minify-html#95.
The text was updated successfully, but these errors were encountered: