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/css/forms.html | 48 +++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'docs/_includes/css/forms.html') diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index a2e096937..3ab202f7c 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -3,7 +3,7 @@

Basic example

Individual form controls automatically receive some global styling. All textual <input>, <textarea>, and <select> elements with .form-control are set to width: 100%; by default. Wrap labels and controls in .form-group for optimum spacing.

-
+
@@ -65,7 +65,7 @@

Always add labels

Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the .sr-only class. There are further alternative methods of providing a label for assistive technologies, such as the aria-label, aria-labelledby or title attribute. If none of these is present, screen readers may resort to using the placeholder attribute, if present, but note that use of placeholder as a replacement for other labelling methods is not advised.

-
+
@@ -102,7 +102,7 @@ {% endhighlight %} -
+
@@ -131,7 +131,7 @@

Horizontal form

Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding .form-horizontal to the form. Doing so changes .form-groups to behave as grid rows, so no need for .row.

-
+
@@ -202,7 +202,7 @@

Type declaration required

Inputs will only be fully styled if their type is properly declared.

-
+
@@ -217,7 +217,7 @@

Textarea

Form control which supports multiple lines of text. Change rows attribute as necessary.

-
+
@@ -230,7 +230,7 @@

Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many.

A checkbox or radio with the disabled attribute will be styled appropriately. To have the <label> for the checkbox or radio also display a "not-allowed" cursor when the user hovers over the label, add the .disabled class to your .radio, .radio-inline, .checkbox, .checkbox-inline, or <fieldset>.

Default (stacked)

-
+