Skip to content

Commit

Permalink
docs(forms): use a legend for fieldset instead of aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd authored and XhmikosR committed Oct 19, 2020
1 parent 116deb2 commit e0a3b7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/content/docs/5.0/forms/overview.md
Expand Up @@ -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">
Expand Down

0 comments on commit e0a3b7e

Please sign in to comment.