diff options
| author | Chris Rebert <[email protected]> | 2014-11-13 11:23:40 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-11-13 11:32:33 -0800 |
| commit | e5c888f4a2676614dc8986fd70b5c36d92d3906c (patch) | |
| tree | c596dc12a3ef14c4c192ad9aac0cd9a041046402 /docs/_includes/css/forms.html | |
| parent | 806490499a9c204071cae322cfbc6a47caed8c02 (diff) | |
| download | bootstrap-e5c888f4a2676614dc8986fd70b5c36d92d3906c.tar.xz bootstrap-e5c888f4a2676614dc8986fd70b5c36d92d3906c.zip | |
Fix .form-inline docs example
Make sample code match live example
Move <label> out of .input-group into .form-group instead
Change field from Email to Username to make it less redundant, slightly more realistic
Add <label> for Username field for consistency
Fixes #15118
Diffstat (limited to 'docs/_includes/css/forms.html')
| -rw-r--r-- | docs/_includes/css/forms.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index 7b0ab336d..efd2d348c 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -72,9 +72,10 @@ <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email"> </div> <div class="form-group"> + <label class="sr-only" for="exampleInputUsername2">Username</label> <div class="input-group"> <div class="input-group-addon">@</div> - <input class="form-control" type="email" placeholder="Enter email"> + <input type="text" class="form-control" id="exampleInputUsername2" placeholder="Enter username"> </div> </div> <div class="form-group"> @@ -92,10 +93,14 @@ {% highlight html %} <form class="form-inline" role="form"> <div class="form-group"> + <label class="sr-only" for="exampleInputEmail2">Email address</label> + <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email"> + </div> + <div class="form-group"> + <label class="sr-only" for="exampleInputUsername2">Username</label> <div class="input-group"> - <label class="sr-only" for="exampleInputEmail2">Email address</label> <div class="input-group-addon">@</div> - <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email"> + <input type="text" class="form-control" id="exampleInputUsername2" placeholder="Enter username"> </div> </div> <div class="form-group"> |
