aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/starter-template
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2017-03-30 22:45:36 +0100
committerPatrick H. Lauke <[email protected]>2017-03-30 23:31:14 +0100
commit63cd4e96b3511853361b1c47dff05496e62c4e9a (patch)
tree79caec8bca25134de7e0282cba225c76f146fdca /docs/examples/starter-template
parentcb4bc89fdf0286e9b88b6d5be6148b9b53463ff8 (diff)
downloadbootstrap-63cd4e96b3511853361b1c47dff05496e62c4e9a.tar.xz
bootstrap-63cd4e96b3511853361b1c47dff05496e62c4e9a.zip
Add explicit aria-label to placeholder-only inputs
While `placeholder` is nominally valid per spec http://rawgit.com/w3c/html-api-map/master/index.html#accessible-name-and-description-calculation it is inelegant, a fallback, and not supported in ios/safari/voiceover and android/chrome/talkback, to name a few combinations `aria-describedby` is also not really the right tool for providing a name/label equivalent, so remove that from the list of possible alternative methods / clarify how it can be used
Diffstat (limited to 'docs/examples/starter-template')
-rw-r--r--docs/examples/starter-template/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/starter-template/index.html b/docs/examples/starter-template/index.html
index e99674e5d..37e5b04f3 100644
--- a/docs/examples/starter-template/index.html
+++ b/docs/examples/starter-template/index.html
@@ -45,7 +45,7 @@
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
- <input class="form-control mr-sm-2" type="text" placeholder="Search">
+ <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>