]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Add explicit aria-label to placeholder-only inputs
authorPatrick H. Lauke <redux@splintered.co.uk>
Thu, 30 Mar 2017 21:45:36 +0000 (22:45 +0100)
committerPatrick H. Lauke <redux@splintered.co.uk>
Thu, 30 Mar 2017 22:31:14 +0000 (23:31 +0100)
commit63cd4e96b3511853361b1c47dff05496e62c4e9a
tree79caec8bca25134de7e0282cba225c76f146fdca
parentcb4bc89fdf0286e9b88b6d5be6148b9b53463ff8
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
12 files changed:
docs/components/button-group.md
docs/components/input-group.md
docs/components/navbar.md
docs/examples/carousel/index.html
docs/examples/dashboard/index.html
docs/examples/jumbotron/index.html
docs/examples/navbar-top-fixed/index.html
docs/examples/navbar-top/index.html
docs/examples/navbars/index.html
docs/examples/offcanvas/index.html
docs/examples/starter-template/index.html
docs/examples/sticky-footer-navbar/index.html