mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
docs(forms): use a legend for fieldset instead of aria-label
This commit is contained in:
parent
116deb27c5
commit
e0a3b7ef0d
@ -103,7 +103,8 @@ However, if your form also includes custom button-like elements such as `<a clas
|
|||||||
|
|
||||||
{{< example >}}
|
{{< example >}}
|
||||||
<form>
|
<form>
|
||||||
<fieldset disabled aria-label="Disabled fieldset example">
|
<fieldset disabled>
|
||||||
|
<legend>Disabled fieldset example</legend>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="disabledTextInput" class="form-label">Disabled input</label>
|
<label for="disabledTextInput" class="form-label">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">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user