-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Button Sizing #8507
Comments
Hmm… Instead of setting the top/bottom padding to 0, you could have the |
You'd need a |
Your right about I think having the
|
Right, I figured you meant So, since the framework can't assume single-line button text, I don't think it makes sense to try to define what height the button is in a Setting the |
I think you're right, A |
I would like to suggest changing how buttons are sized in the future. Currently we can choose a font-size in the '$button-sizes' map and set the padding to use for all the buttons in '$button-padding'.
The problem I have with this is that it doesn't give me enough control over the size of each button. One example is when using the "tiny" and "small" buttons, I may want to use the same font size for both but have "tiny" be smaller in height. Another example is when I'm trying to size all the buttons in multiples of my baseline. Currently I can set my default button as multiple of my baseline, after that I would have to chose my font-size based on my padding (originally decided for the default button) if I wanted to keep the height consistent.
I would suggest having two maps "$button-height" and "$button-font-size" and have "$button-padding" only control the left/right padding. This way you could set the height of each button independent of the font-size used. This would make it much easier to maintain a vertical rhythm.
The only real drawback I could see is buttons with multiple text lines wouldn't work. However, I think this is pretty uncommon and a separate style could be written in these cases.
What do you think? Do you see any real issues I'm missing?
The text was updated successfully, but these errors were encountered: