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/input-group.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs/components/input-group.md') 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 (`