diff options
| author | Patrick H. Lauke <[email protected]> | 2017-03-30 22:45:36 +0100 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2017-03-30 23:31:14 +0100 |
| commit | 63cd4e96b3511853361b1c47dff05496e62c4e9a (patch) | |
| tree | 79caec8bca25134de7e0282cba225c76f146fdca /docs/examples/offcanvas | |
| parent | cb4bc89fdf0286e9b88b6d5be6148b9b53463ff8 (diff) | |
| download | bootstrap-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/offcanvas')
| -rw-r--r-- | docs/examples/offcanvas/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/offcanvas/index.html b/docs/examples/offcanvas/index.html index 001e50871..8183714b1 100644 --- a/docs/examples/offcanvas/index.html +++ b/docs/examples/offcanvas/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> |
