mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-29 08:10:47 +02:00
docs(forms): use a legend for fieldset instead of aria-label
This commit is contained in:
@@ -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">
|
||||||
|
Reference in New Issue
Block a user