From 63cd4e96b3511853361b1c47dff05496e62c4e9a Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Thu, 30 Mar 2017 22:45:36 +0100 Subject: 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 --- docs/components/button-group.md | 4 ++-- docs/components/input-group.md | 16 ++++++++-------- docs/components/navbar.md | 18 +++++++++--------- 3 files changed, 19 insertions(+), 19 deletions(-) (limited to 'docs/components') diff --git a/docs/components/button-group.md b/docs/components/button-group.md index 59a18e262..5c21e51f7 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
@ - +
@@ -72,7 +72,7 @@ Feel free to mix input groups with button groups in your toolbars. Similar to th
@ - +
{% endexample %} diff --git a/docs/components/input-group.md b/docs/components/input-group.md index 0869b70e7..f84cb2453 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 %}
@ - +

- + @example.com

@@ -53,12 +53,12 @@ Add the relative form sizing classes to the `.input-group` itself and contents w {% example html %}
@ - +

@ - +
{% endexample %} @@ -124,12 +124,12 @@ Buttons in input groups must wrapped in a `.input-group-btn` for proper alignmen - +
- + @@ -143,7 +143,7 @@ Buttons in input groups must wrapped in a `.input-group-btn` for proper alignmen - + @@ -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 (`
@@ -192,7 +192,7 @@ Place various form controls and components within a navbar with `.form-inline`. {% example html %} @@ -204,7 +204,7 @@ Align the contents of your inline forms with utilities as needed. @@ -217,7 +217,7 @@ Input groups work, too:
@ - +
@@ -300,7 +300,7 @@ Theming the navbar has never been easier thanks to the combination of theming cl
- +
@@ -328,7 +328,7 @@ Theming the navbar has never been easier thanks to the combination of theming cl
- +
@@ -356,7 +356,7 @@ Theming the navbar has never been easier thanks to the combination of theming cl
- +
@@ -458,7 +458,7 @@ With no `.navbar-brand` shown in lowest breakpoint:
- +
@@ -516,7 +516,7 @@ With a toggler on the left and brand name on the right:
- +
-- cgit v1.2.3