diff options
author | Patrick H. Lauke <redux@splintered.co.uk> | 2017-04-10 00:09:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-10 00:09:45 +0300 |
commit | ba306d98bb6fb5c2a3a6850206839b5b0dbf4728 (patch) | |
tree | 78cca02210f6623b72dd6d2317911b979d49ccdd /docs | |
parent | 41abd1c7a5c96497130ef14dd152e26c042ec1d6 (diff) | |
parent | 0af28c26ecb0b57cd7db8627928b8466d165af5b (diff) |
Merge branch 'v4-dev' into v4-dev-docs-navs-js-tabpanel-fix
Diffstat (limited to 'docs')
-rw-r--r-- | docs/components/button-group.md | 4 | ||||
-rw-r--r-- | docs/components/input-group.md | 16 | ||||
-rw-r--r-- | docs/components/navbar.md | 18 | ||||
-rw-r--r-- | docs/examples/carousel/index.html | 2 | ||||
-rw-r--r-- | docs/examples/dashboard/index.html | 2 | ||||
-rw-r--r-- | docs/examples/jumbotron/index.html | 2 | ||||
-rw-r--r-- | docs/examples/navbar-top-fixed/index.html | 2 | ||||
-rw-r--r-- | docs/examples/navbar-top/index.html | 2 | ||||
-rw-r--r-- | docs/examples/navbars/index.html | 6 | ||||
-rw-r--r-- | docs/examples/offcanvas/index.html | 2 | ||||
-rw-r--r-- | docs/examples/starter-template/index.html | 2 | ||||
-rw-r--r-- | docs/examples/sticky-footer-navbar/index.html | 2 |
12 files changed, 30 insertions, 30 deletions
diff --git a/docs/components/button-group.md b/docs/components/button-group.md index 59a18e2627..5c21e51f7a 100644 --- a/docs/components/button-group.md +++ b/docs/components/button-group.md @@ -59,7 +59,7 @@ Feel free to mix input groups with button groups in your toolbars. Similar to th </div> <div class="input-group"> <span class="input-group-addon" id="btnGroupAddon">@</span> - <input type="text" class="form-control" placeholder="Input group example" aria-describedby="btnGroupAddon"> + <input type="text" class="form-control" placeholder="Input group example" aria-label="Input group example" aria-describedby="btnGroupAddon"> </div> </div> @@ -72,7 +72,7 @@ Feel free to mix input groups with button groups in your toolbars. Similar to th </div> <div class="input-group"> <span class="input-group-addon" id="btnGroupAddon2">@</span> - <input type="text" class="form-control" placeholder="Input group example" aria-describedby="btnGroupAddon2"> + <input type="text" class="form-control" placeholder="Input group example" aria-label="Input group example" aria-describedby="btnGroupAddon2"> </div> </div> {% endexample %} diff --git a/docs/components/input-group.md b/docs/components/input-group.md index 0869b70e76..f84cb24531 100644 --- a/docs/components/input-group.md +++ b/docs/components/input-group.md @@ -19,11 +19,11 @@ Place one add-on or button on either side of an input. You may also place one on {% example html %} <div class="input-group"> <span class="input-group-addon" id="basic-addon1">@</span> - <input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1"> + <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1"> </div> <br> <div class="input-group"> - <input type="text" class="form-control" placeholder="Recipient's username" aria-describedby="basic-addon2"> + <input type="text" class="form-control" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="basic-addon2"> <span class="input-group-addon" id="basic-addon2">@example.com</span> </div> <br> @@ -53,12 +53,12 @@ Add the relative form sizing classes to the `.input-group` itself and contents w {% example html %} <div class="input-group input-group-lg"> <span class="input-group-addon" id="sizing-addon1">@</span> - <input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon1"> + <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="sizing-addon1"> </div> <br> <div class="input-group"> <span class="input-group-addon" id="sizing-addon2">@</span> - <input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon2"> + <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="sizing-addon2"> </div> {% endexample %} @@ -124,12 +124,12 @@ Buttons in input groups must wrapped in a `.input-group-btn` for proper alignmen <span class="input-group-btn"> <button class="btn btn-secondary" type="button">Go!</button> </span> - <input type="text" class="form-control" placeholder="Search for..."> + <input type="text" class="form-control" placeholder="Search for..." aria-label="Search for..."> </div> </div> <div class="col-lg-6"> <div class="input-group"> - <input type="text" class="form-control" placeholder="Search for..."> + <input type="text" class="form-control" placeholder="Search for..." aria-label="Search for...> <span class="input-group-btn"> <button class="btn btn-secondary" type="button">Go!</button> </span> @@ -143,7 +143,7 @@ Buttons in input groups must wrapped in a `.input-group-btn` for proper alignmen <span class="input-group-btn"> <button class="btn btn-secondary" type="button">Hate it</button> </span> - <input type="text" class="form-control" placeholder="Product name"> + <input type="text" class="form-control" placeholder="Product name" aria-label="Product name"> <span class="input-group-btn"> <button class="btn btn-secondary" type="button">Love it</button> </span> @@ -240,4 +240,4 @@ Buttons in input groups must wrapped in a `.input-group-btn` for proper alignmen Screen readers will have trouble with your forms if you don't include a label for every input. For these input groups, ensure that any additional label or functionality is conveyed to assistive technologies. -The exact technique to be used (`<label>` elements hidden using the `.sr-only` class, or use of the `aria-label`, `aria-labelledby`, `aria-describedby`, `title` or `placeholder` attribute) and what additional information will need to be conveyed will vary depending on the exact type of interface widget you're implementing. The examples in this section provide a few suggested, case-specific approaches. +The exact technique to be used (`<label>` elements hidden using the `.sr-only` class, or use of the `aria-label` and `aria-labelledby` attributes, possibly in combination with `aria-describedby`) and what additional information will need to be conveyed will vary depending on the exact type of interface widget you're implementing. The examples in this section provide a few suggested, case-specific approaches. diff --git a/docs/components/navbar.md b/docs/components/navbar.md index 1aa83ae1cb..0891d2327d 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -57,7 +57,7 @@ Here's an example of all the sub-components included in a responsive light-theme </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> @@ -192,7 +192,7 @@ Place various form controls and components within a navbar with `.form-inline`. {% example html %} <nav class="navbar navbar-light bg-faded"> <form class="form-inline"> - <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> </nav> @@ -204,7 +204,7 @@ Align the contents of your inline forms with utilities as needed. <nav class="navbar navbar-light bg-faded justify-content-between"> <a class="navbar-brand">Navbar</a> <form class="form-inline"> - <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> </nav> @@ -217,7 +217,7 @@ Input groups work, too: <form class="form-inline"> <div class="input-group"> <span class="input-group-addon" id="basic-addon1">@</span> - <input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1"> + <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1"> </div> </form> </nav> @@ -300,7 +300,7 @@ Theming the navbar has never been easier thanks to the combination of theming cl </li> </ul> <form class="form-inline"> - <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-info my-2 my-sm-0" type="submit">Search</button> </form> </div> @@ -328,7 +328,7 @@ Theming the navbar has never been easier thanks to the combination of theming cl </li> </ul> <form class="form-inline"> - <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-secondary my-2 my-sm-0" type="submit">Search</button> </form> </div> @@ -356,7 +356,7 @@ Theming the navbar has never been easier thanks to the combination of theming cl </li> </ul> <form class="form-inline"> - <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-primary my-2 my-sm-0" type="submit">Search</button> </form> </div> @@ -458,7 +458,7 @@ With no `.navbar-brand` shown in lowest breakpoint: </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> @@ -516,7 +516,7 @@ With a toggler on the left and brand name on the right: </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> diff --git a/docs/examples/carousel/index.html b/docs/examples/carousel/index.html index 6ccb108051..e746c59159 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> diff --git a/docs/examples/dashboard/index.html b/docs/examples/dashboard/index.html index 33f5e05494..5270f17052 100644 --- a/docs/examples/dashboard/index.html +++ b/docs/examples/dashboard/index.html @@ -39,7 +39,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> diff --git a/docs/examples/jumbotron/index.html b/docs/examples/jumbotron/index.html index d2cb0a4b76..8ac227e23f 100644 --- a/docs/examples/jumbotron/index.html +++ b/docs/examples/jumbotron/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> diff --git a/docs/examples/navbar-top-fixed/index.html b/docs/examples/navbar-top-fixed/index.html index b7eee96cde..e7685c5be1 100644 --- a/docs/examples/navbar-top-fixed/index.html +++ b/docs/examples/navbar-top-fixed/index.html @@ -36,7 +36,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> diff --git a/docs/examples/navbar-top/index.html b/docs/examples/navbar-top/index.html index e010069862..c748a33a5b 100644 --- a/docs/examples/navbar-top/index.html +++ b/docs/examples/navbar-top/index.html @@ -36,7 +36,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> diff --git a/docs/examples/navbars/index.html b/docs/examples/navbars/index.html index 056213e355..d3c53edc59 100644 --- a/docs/examples/navbars/index.html +++ b/docs/examples/navbars/index.html @@ -45,7 +45,7 @@ </li> </ul> <form class="form-inline my-2 my-md-0"> - <input class="form-control" type="text" placeholder="Search"> + <input class="form-control" type="text" placeholder="Search" aria-label="Search"> </form> </div> </nav> @@ -238,7 +238,7 @@ </li> </ul> <form class="form-inline my-2 my-md-0"> - <input class="form-control" type="text" placeholder="Search"> + <input class="form-control" type="text" placeholder="Search" aria-label="Search"> </form> </div> </div> @@ -300,7 +300,7 @@ </li> </ul> <form class="form-inline my-2 my-md-0"> - <input class="form-control" type="text" placeholder="Search"> + <input class="form-control" type="text" placeholder="Search" aria-label="Search"> </form> </div> </nav> diff --git a/docs/examples/offcanvas/index.html b/docs/examples/offcanvas/index.html index 001e50871a..8183714b1b 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> diff --git a/docs/examples/starter-template/index.html b/docs/examples/starter-template/index.html index e99674e5d2..37e5b04f33 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> diff --git a/docs/examples/sticky-footer-navbar/index.html b/docs/examples/sticky-footer-navbar/index.html index 0d7ee66ef1..dffcbc4647 100644 --- a/docs/examples/sticky-footer-navbar/index.html +++ b/docs/examples/sticky-footer-navbar/index.html @@ -37,7 +37,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> |