From 36800a2740cd0f0d6150e27a5311121fccc67eb2 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 5 Aug 2015 23:15:12 -0700 Subject: primary btn there as well --- docs/components/forms.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/components/forms.md') diff --git a/docs/components/forms.md b/docs/components/forms.md index 95a2c5992..976655eb7 100644 --- a/docs/components/forms.md +++ b/docs/components/forms.md @@ -79,7 +79,7 @@ Remember, since Bootstrap utilizies the HTML5 doctype, **all inputs must have a Check me out - + {% endexample %} -- cgit v1.2.3 From 7c3f5b6d59a3479c92cd85b2a1f72a3c6a346743 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 8 Aug 2015 14:15:09 -0700 Subject: rewrite some forms docs, use new validation styles and icons --- docs/components/forms.md | 119 ++++------------------------------------------- 1 file changed, 9 insertions(+), 110 deletions(-) (limited to 'docs/components/forms.md') diff --git a/docs/components/forms.md b/docs/components/forms.md index 976655eb7..bfb24bd28 100644 --- a/docs/components/forms.md +++ b/docs/components/forms.md @@ -15,7 +15,7 @@ Bootstrap provides several form control styles, layout options, and custom compo Bootstrap's form controls expand on [our Rebooted form styles](/components/reboot/#forms) with classes. Use these classes to opt into their customized displays for a more consistent rendering across browsers and devices. The example form below demonstrates common HTML form elements that receive updated styles from Bootstrap with additional classes. -Remember, since Bootstrap utilizies the HTML5 doctype, **all inputs must have a `type` attribute** for proper rendering. +Remember, since Bootstrap utilizes the HTML5 doctype, **all inputs must have a `type` attribute**. {% example html %}
@@ -425,16 +425,6 @@ When you need to place plain text next to a form label within a form, use the `.
{% endexample %} -## Focus state - -We remove the default `outline` styles on some form controls and apply a `box-shadow` in its place for `:focus`. Shown below is a custom input that only **demonstrates** the `:focus` state on an `` with `.form-control`. - -
-
- -
-
- ## Disabled states Add the `disabled` boolean attribute on an input to prevent user interactions. Disabled inputs appear lighter and add a `not-allowed` cursor. @@ -534,6 +524,7 @@ Block level help text for form controls. Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add `.has-warning`, `.has-error`, or `.has-success` to the parent element. Any `.control-label`, `.form-control`, and `.help-block` within that element will receive the validation styles. +{% comment %} {% callout warning %} #### Conveying validation state to assistive technologies and colorblind users @@ -541,20 +532,22 @@ Using these validation styles to denote the state of a form control only provide Ensure that an alternative indication of state is also provided. For instance, you can include a hint about state in the form control's `