mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-23 13:43:11 +02:00
docs(forms): backport #31904
* docs(forms): use a legend for fieldset instead of aria-label * docs(forms): fix incorrect legend nesting in fieldset
This commit is contained in:
@@ -400,9 +400,8 @@ At times, you maybe need to use margin or padding utilities to create that perfe
|
|||||||
<input type="password" class="form-control" id="inputPassword3">
|
<input type="password" class="form-control" id="inputPassword3">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<fieldset class="form-group">
|
<fieldset class="form-group row">
|
||||||
<div class="row">
|
<legend class="col-form-label col-sm-2 float-sm-left pt-0">Radios</legend>
|
||||||
<legend class="col-form-label col-sm-2 pt-0">Radios</legend>
|
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input class="form-check-input" type="radio" name="gridRadios" id="gridRadios1" value="option1" checked>
|
<input class="form-check-input" type="radio" name="gridRadios" id="gridRadios1" value="option1" checked>
|
||||||
@@ -423,11 +422,9 @@ At times, you maybe need to use margin or padding utilities to create that perfe
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<div class="col-sm-2">Checkbox</div>
|
<div class="col-sm-10 offset-sm-2">
|
||||||
<div class="col-sm-10">
|
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input class="form-check-input" type="checkbox" id="gridCheck1">
|
<input class="form-check-input" type="checkbox" id="gridCheck1">
|
||||||
<label class="form-check-label" for="gridCheck1">
|
<label class="form-check-label" for="gridCheck1">
|
||||||
@@ -705,6 +702,7 @@ Add the `disabled` attribute to a `<fieldset>` to disable all the controls withi
|
|||||||
{% capture example %}
|
{% capture example %}
|
||||||
<form>
|
<form>
|
||||||
<fieldset disabled>
|
<fieldset disabled>
|
||||||
|
<legend>Disabled fieldset example</legend>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="disabledTextInput">Disabled input</label>
|
<label for="disabledTextInput">Disabled input</label>
|
||||||
<input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
|
<input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
|
||||||
|
Reference in New Issue
Block a user