aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2017-04-28 00:35:55 +0100
committerMark Otto <[email protected]>2017-06-14 19:51:50 -0700
commitff5c75510d4c7445770048a117b4ac7764ca2031 (patch)
treea99990f50eec256d9329ca5d94189191e91bf96d /docs
parent22bd955434ac3cb6d4a5a7f2d21129a9a7f4b343 (diff)
downloadbootstrap-ff5c75510d4c7445770048a117b4ac7764ca2031.tar.xz
bootstrap-ff5c75510d4c7445770048a117b4ac7764ca2031.zip
Rename .form-control-static to .form-control-readonly-plain
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/components/forms.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/4.0/components/forms.md b/docs/4.0/components/forms.md
index 2bc4a91cb..0a5756c4d 100644
--- a/docs/4.0/components/forms.md
+++ b/docs/4.0/components/forms.md
@@ -115,16 +115,16 @@ Add the `readonly` boolean attribute on an input to prevent modification of the
<input class="form-control" type="text" placeholder="Readonly input here…" readonly>
{% endexample %}
-### Static
+### Readonly plain text
-If you want to have read-only fields in your form styled as plain text, use the `.form-control-static` class to remove the default form field styling and preserve the correct margin and padding.
+If you want to have `<input readonly>` elements in your form styled as plain text, use the `.form-control-plaintext` class to remove the default form field styling and preserve the correct margin and padding.
{% example html %}
<form>
<div class="form-group row">
<label for="staticEmail" class="col-sm-2 col-form-label">Email</label>
<div class="col-sm-10">
- <input type="text" readonly class="form-control-static" id="staticEmail" value="[email protected]">
+ <input type="text" readonly class="form-control-plaintext" id="staticEmail" value="[email protected]">
</div>
</div>
<div class="form-group row">
@@ -140,7 +140,7 @@ If you want to have read-only fields in your form styled as plain text, use the
<form class="form-inline">
<div class="form-group">
<label for="staticEmail2" class="sr-only">Email</label>
- <input type="text" readonly class="form-control-static" id="staticEmail2" value="[email protected]">
+ <input type="text" readonly class="form-control-plaintext" id="staticEmail2" value="[email protected]">
</div>
<div class="form-group mx-sm-3">
<label for="inputPassword2" class="sr-only">Password</label>