tailwindlabs / tailwindcss-custom-forms

A better base for styling form elements with Tailwind CSS.
https://tailwindcss-custom-forms.netlify.app/
MIT License
1.55k stars 72 forks source link

Prevent checkbox from shrinking #15

Closed MartijnCuppens closed 5 years ago

MartijnCuppens commented 5 years ago

Prevent checkbox/radio from shrinking in flex container. See https://codepen.io/MartijnCuppens/pen/BebyKd

adamwathan commented 5 years ago

Thanks! I debated whether or not to bake this in but I think it's worth it for the convenience. Generally I'm hesitant to bake things in that introduce any sort of awareness of the context of where something is being used, but it would be annoying to add flex-shrink-0 99% of the time you ever use these elements, even if I believe that really is the concern of the consumer when choosing to put the element inside a flex container, hah.