Skip to content

Sync plain text font-size with $input-font-size#28464

Merged
XhmikosR merged 3 commits into
twbs:masterfrom
ysds:patch-5
Apr 25, 2019
Merged

Sync plain text font-size with $input-font-size#28464
XhmikosR merged 3 commits into
twbs:masterfrom
ysds:patch-5

Conversation

@ysds

@ysds ysds commented Mar 12, 2019

Copy link
Copy Markdown
Contributor

If change the $input-font-size, but the font size of .form-control-plaintext doesn't change.

image

demo: https://codepen.io/anon/pen/YgrJQW (In this demo, the custom font sizes are intentionally specified huge values.)

Note: The .form-control-plaintext with size options are not documented but they are supported in the source:

bootstrap/scss/_forms.scss

Lines 110 to 127 in d650197

.form-control-plaintext {
display: block;
width: 100%;
padding-top: $input-padding-y;
padding-bottom: $input-padding-y;
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
line-height: $input-line-height;
color: $input-plaintext-color;
background-color: transparent;
border: solid transparent;
border-width: $input-border-width 0;
&.form-control-sm,
&.form-control-lg {
padding-right: 0;
padding-left: 0;
}
}

@ysds ysds requested a review from a team as a code owner March 12, 2019 10:13
@XhmikosR XhmikosR merged commit 2d0f2fe into twbs:master Apr 25, 2019
@XhmikosR XhmikosR added the v4 label Jul 16, 2019
@mdo mdo mentioned this pull request Jul 22, 2019
@ysds ysds deleted the patch-5 branch February 21, 2020 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants