Skip to content

styling text inputs with no type specified #75

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

Closed
rabraghib opened this issue Aug 9, 2021 · 0 comments
Closed

styling text inputs with no type specified #75

rabraghib opened this issue Aug 9, 2021 · 0 comments

Comments

@rabraghib
Copy link

rabraghib commented Aug 9, 2021

What version of @tailwindcss/forms are you using?

v0.3.3

What version of Node.js are you using?

v14.17.3

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction repository

Not needed. right?

Describe your issue

Note that for text inputs, you must add the type="text" attribute for these styles to take effect. This is a necessary trade-off to avoid relying on the overly greedy input selector and unintentionally styling elements we don't have solutions for yet, like input[type="range"] for example.

Using input:where(:not([type])) css selector will allow styling text inputs with changing any defaults values for any other elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant