From 5f2872c5611fcd051916695c62716e5522b85e6f Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 9 Mar 2015 14:48:51 +0000 Subject: [PATCH] input groups: drop the tooltips warning, move accessibility notice to a sub section --- docs/components/input-group.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/components/input-group.md b/docs/components/input-group.md index 6681485baa..c89b44e87b 100644 --- a/docs/components/input-group.md +++ b/docs/components/input-group.md @@ -5,16 +5,6 @@ title: Input group Easily extend form controls by adding text, buttons, or button groups on either side of textual ``s. -
-

Tooltips & popovers in input groups require special setting

-

When using tooltips or popovers on elements within an .input-group, you'll have to specify the option container: 'body' to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).

-
-
-

Always add labels

-

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.

-
- ## Basic example Place one add-on or button on either side of an input. You may also place one on both sides of an input. **We do not support multiple add-ons on a single side, nor multiple form-controls in a single input group.** @@ -187,3 +177,9 @@ Buttons in input groups are a bit different and require one extra level of nesti {% endexample %} + +## Accessibility + +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 (`