tailwindlabs / tailwindcss-forms

A plugin that provides a basic reset for form styles that makes form elements easy to override with utilities.
https://tailwindcss-forms.vercel.app
MIT License
4.15k stars 219 forks source link

Remove chevron for selects with a non-default size #137

Closed thecrypticace closed 1 year ago

thecrypticace commented 1 year ago

Fixes #136

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
tailwindcss-forms ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 1, 2023 at 7:41PM (UTC)
adamwathan commented 1 year ago

Looks like the size attribute can be used to define the width of <input type="password"> and <input type="text"> elements, so we might need to be more careful with the selector here as I think what we have here will add right padding to those elements if a size is defined:

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/size

If we're going to use :where anyways maybe we can qualify the whole thing under select explicitly, like select:where(...)?