
135: Lessons Learned Building Tailwind UI
Full Stack Radio
00:00
How to Set the Height of a Button
We wanted to figure out how tall should our buttons of form inputs be. This was like a week long effort by the way, like testing every possible combination of things that we could try to decide what size do we actually want this stuff to be. The approach that I've always used is to rely on vertical padding to essentially define the height because I want the button height to change if for whatever weird reason the button text has to wrap. If you have a bug in your UI or using some like localization stuff where like the text gets much longer thanlike you're originally designed for it's better for it to wrap and not get chopped off.
Play episode from 17:17
Transcript


