]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs(forms): use a legend for fieldset instead of aria-label
authorGaël Poupard <gael.poupard@orange.com>
Thu, 15 Oct 2020 14:37:42 +0000 (16:37 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 19 Oct 2020 08:38:22 +0000 (11:38 +0300)
site/content/docs/5.0/forms/overview.md

index a181c34dd4773d35feb4b8d7d948d710e657404e..501be9287d7e729265e839af437e1486d491fd1a 100644 (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">