mirror of https://github.com/twbs/bootstrap.git
Fix docs compilation to avoid duplicate IDs
This commit is contained in:
parent
72ee1af96a
commit
8915efae15
|
@ -134,12 +134,12 @@ When using `.input-group` and `.form-floating` along with form validation, the `
|
|||
Make any `.form-control` always use a floating label with visible placeholder with the `.form-floating-always` modifier class. Visible placeholders use the default input `color` and lighten to the placeholder color on focus. This matches them with other floating labels built with plaintext inputs and selects.
|
||||
|
||||
<Example code={`<div class="form-floating form-floating-always mb-3">
|
||||
<input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
|
||||
<label for="floatingInput">Email address</label>
|
||||
<input type="email" class="form-control" id="alwaysFloatingInput" placeholder="name@example.com">
|
||||
<label for="alwaysFloatingInput">Email address</label>
|
||||
</div>
|
||||
<div class="form-floating form-floating-always">
|
||||
<input type="password" class="form-control" id="floatingPassword" placeholder="••••••••">
|
||||
<label for="floatingPassword">Password</label>
|
||||
<input type="password" class="form-control" id="alwaysFloatingPassword" placeholder="••••••••">
|
||||
<label for="alwaysFloatingPassword">Password</label>
|
||||
</div>`} />
|
||||
|
||||
## Layout
|
||||
|
|
Loading…
Reference in New Issue