diff options
| author | Patrick H. Lauke <[email protected]> | 2017-04-09 22:08:36 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-04-09 22:08:36 +0100 |
| commit | 0af28c26ecb0b57cd7db8627928b8466d165af5b (patch) | |
| tree | b02dbe5c3cbfaea4f45b1197e9928eadedd875e9 /docs/examples/carousel | |
| parent | 6702107131b810da91fcec040c4d74f79d3a1a26 (diff) | |
| parent | 61536dd076a53219a96c2c173e022d8b0cd6fe80 (diff) | |
| download | bootstrap-0af28c26ecb0b57cd7db8627928b8466d165af5b.tar.xz bootstrap-0af28c26ecb0b57cd7db8627928b8466d165af5b.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/carousel')
| -rw-r--r-- | docs/examples/carousel/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/carousel/index.html b/docs/examples/carousel/index.html index 6ccb10805..e746c5915 100644 --- a/docs/examples/carousel/index.html +++ b/docs/examples/carousel/index.html @@ -35,7 +35,7 @@ </li> </ul> <form class="form-inline mt-2 mt-md-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> |
