]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Add explicit aria-label to placeholder-only inputs
authorPatrick H. Lauke <redux@splintered.co.uk>
Sun, 9 Apr 2017 21:08:36 +0000 (22:08 +0100)
committerGitHub <noreply@github.com>
Sun, 9 Apr 2017 21:08:36 +0000 (22:08 +0100)
commit0af28c26ecb0b57cd7db8627928b8466d165af5b
treeb02dbe5c3cbfaea4f45b1197e9928eadedd875e9
parent6702107131b810da91fcec040c4d74f79d3a1a26
parent61536dd076a53219a96c2c173e022d8b0cd6fe80
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