Variable .btn and .form-control font sizes#26908
Conversation
andresgalante
left a comment
There was a problem hiding this comment.
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 #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" |
andresgalante
left a comment
There was a problem hiding this comment.
👍 Thanks a lot @MartijnCuppens !
@mdo I'll add it to 4.2 since it's a new feature.
Closes #26907.