]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix a11y issues in `.hstack` example and placeholder 'How it works' example (#34892)
authorJulien Déramond <julien.deramond@orange.com>
Sat, 4 Sep 2021 06:36:18 +0000 (08:36 +0200)
committerGitHub <noreply@github.com>
Sat, 4 Sep 2021 06:36:18 +0000 (09:36 +0300)
site/content/docs/5.1/components/placeholders.md
site/content/docs/5.1/helpers/stacks.md

index cfbaf1672f0068c1b0b3a1ece0b9860bd66866cf..55545ec69aeb7c84b8e92dbd0525c97cf90dde87 100644 (file)
@@ -82,7 +82,7 @@ We apply additional styling to `.btn`s via `::before` to ensure the `height` is
   <span class="placeholder col-6"></span>
 </p>
 
-<a href="#" class="btn btn-primary disabled placeholder col-4" aria-hidden="true"></a>
+<a href="#" tabindex="-1" class="btn btn-primary disabled placeholder col-4" aria-hidden="true"></a>
 {{< /example >}}
 
 {{< callout info >}}
index a93a80046079942f5c7d91c9fac072b5874309ea..c1316c3ad527e7f15337e8874966c0e5df16c67b 100644 (file)
@@ -68,7 +68,7 @@ Create an inline form with `.hstack`:
 
 {{< example >}}
 <div class="hstack gap-3">
-  <input class="form-control me-auto" type="text" placeholder="Add your item here...">
+  <input class="form-control me-auto" type="text" placeholder="Add your item here..." aria-label="Add your item here...">
   <button type="button" class="btn btn-secondary">Submit</button>
   <div class="vr"></div>
   <button type="button" class="btn btn-outline-danger">Reset</button>