0
0
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:
Gaël Poupard 2020-10-15 16:37:42 +02:00 committed by XhmikosR
parent 116deb27c5
commit e0a3b7ef0d

View File

@ -103,7 +103,8 @@ However, if your form also includes custom button-like elements such as `<a clas
{{< example >}}
<form>
<fieldset disabled aria-label="Disabled fieldset example">
<fieldset disabled>
<legend>Disabled fieldset example</legend>
<div class="mb-3">
<label for="disabledTextInput" class="form-label">Disabled input</label>
<input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">