From 44447eeefe61dbb16cab59900c3c061d9f207fbc Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 24 Nov 2014 17:09:32 -0800 Subject: Give all embedded live docs examples data-example-id attrs Refs #11410 --- docs/_includes/components/input-groups.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/_includes/components/input-groups.html') diff --git a/docs/_includes/components/input-groups.html b/docs/_includes/components/input-groups.html index 221fcad54..8a07735d2 100644 --- a/docs/_includes/components/input-groups.html +++ b/docs/_includes/components/input-groups.html @@ -22,7 +22,7 @@

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.

We do not support multiple form-controls in a single input group.

-
+
@ @@ -59,7 +59,7 @@

Sizing

Add the relative form sizing classes to the .input-group itself and contents within will automatically resize—no need for repeating the form control size classes on each element.

- +
@ @@ -95,7 +95,7 @@

Checkboxes and radio addons

Place any checkbox or radio option within an input group's addon instead of text.

- +
@@ -139,7 +139,7 @@

Button addons

Buttons in input groups are a bit different and require one extra level of nesting. Instead of .input-group-addon, you'll need to use .input-group-btn to wrap the buttons. This is required due to default browser styles that cannot be overridden.

- +
@@ -182,7 +182,7 @@

Buttons with dropdowns

- +
@@ -252,7 +252,7 @@ {% endhighlight %}

Segmented buttons

- +
-- cgit v1.2.3 From eee275762ff962121576f5aca93e0dfc52679d51 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Mon, 8 Dec 2014 14:03:04 +0000 Subject: Callout for labelling of input groups plus a few suggested approaches (in some cases, elided, as the actual content of the label - being a generic example - is not important) --- docs/_includes/components/input-groups.html | 90 +++++++++++++++-------------- 1 file changed, 47 insertions(+), 43 deletions(-) (limited to 'docs/_includes/components/input-groups.html') diff --git a/docs/_includes/components/input-groups.html b/docs/_includes/components/input-groups.html index 8a07735d2..ba14573ba 100644 --- a/docs/_includes/components/input-groups.html +++ b/docs/_includes/components/input-groups.html @@ -16,7 +16,11 @@

Don't mix with other components

Do not mix form groups or grid column classes directly with input groups. Instead, nest the input group inside of the form group or grid-related element.

- +
+

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.

@@ -24,35 +28,35 @@

We do not support multiple form-controls in a single input group.

- @ - + @ +

- - .00 + + @example.com

$ - + .00
{% highlight html %}
- @ - + @ +
- - .00 + + @example.com
$ - + .00
{% endhighlight %} @@ -61,34 +65,34 @@

Add the relative form sizing classes to the .input-group itself and contents within will automatically resize—no need for repeating the form control size classes on each element.

- @ - + @ +

- @ - + @ +

- @ - + @ +
{% highlight html %}
- @ - + @ +
- @ - + @ +
- @ - + @ +
{% endhighlight %} @@ -100,17 +104,17 @@
- + - +
- + - +
@@ -120,17 +124,17 @@
- + - +
- + - +
@@ -146,12 +150,12 @@ - +
- + @@ -166,12 +170,12 @@ - +
- + @@ -196,12 +200,12 @@
  • Separated link
  • - +
    - +
    - +
    - +
    - +
    - +
    - +
    -- cgit v1.2.3 From 285ec7049393792503b2127932e4bc6a967d58b6 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Mon, 8 Dec 2014 15:25:02 +0000 Subject: Make main segmented button keyboard-focusable unless there's a reason why ``tabindex="-1"`` was dropped in there... --- docs/_includes/components/input-groups.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/_includes/components/input-groups.html') diff --git a/docs/_includes/components/input-groups.html b/docs/_includes/components/input-groups.html index ba14573ba..665c5b7cc 100644 --- a/docs/_includes/components/input-groups.html +++ b/docs/_includes/components/input-groups.html @@ -261,7 +261,7 @@
    - + +