Skip to content
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

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

Merged
merged 3 commits into from
Apr 25, 2019
Merged

Conversation

ysds
Copy link
Contributor

@ysds ysds commented Mar 12, 2019

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 added v5 and removed v4 labels Mar 12, 2019
@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.

3 participants