-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Variable .btn and .form-control font sizes #26908
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @MartijnCuppens, thanks a lot! I like the idea of having variables to change the font size of the btns. Having said that there are 2 things that I'd change on this PR:
-
As @isychev mention on Change btn font-sizes #26907 there should be a relation between the font size of the btn and the font size of the input, the same way we do paddings for example.
-
This PR changes the font-size of the sm and lg btns and it'd produce a regresion. I suggest creating variables but defining them as as
$font-size-base
. Therefore we keep the same aspect, we don't break authors implementations but we open an option to style them.
Does it make sense?
Thanks for the review @isychev and @andresgalante. It makes sense to keep the btn and input font sizes in sync, I'll look into this.
Right now |
Yes, I am suggesting something like: // define inputs and btns to be the same
$input-btn-font-size: $font-size-base;
$input-btn-font-size-sm: $input-btn-font-size;
$input-btn-font-size-lg: $input-btn-font-size;
// and have control over the btns too
$btn-font-size: $input-btn-font-size;
$btn-font-size-sm: $input-btn-font-size-sm;
$btn-font-size-lg: $input-btn-font-size-lg; Makes sense? |
Hmm, wouldn't that be a breaking change? All the font-sizes of for the Wouldn't this make more sense?
|
I've updated my PR to keep the I've also updated |
I think that this is a good idea. The main thing that all worked by default, If someone wants to change the size of the buttons, he must understand the risks. It may be worth adding a comment "Caution. Resizing only buttons can affect layout" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks a lot @MartijnCuppens !
@mdo I'll add it to 4.2 since it's a new feature.
Closes #26907.