From afdc9c4b3216b628a9bf4dbaa5b5e070d95cb0f0 Mon Sep 17 00:00:00 2001 From: Zac Echola Date: Wed, 2 Jul 2014 10:15:22 -0500 Subject: Documents radio and checkbox validation states References #14010 fixing duped IDs fix ALL the duped IDs. make example id match actual id --- docs/_includes/css/forms.html | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'docs/_includes') diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index 9680c6c91..c5d89c321 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -579,6 +579,58 @@ +{% endhighlight %} + +

Checkboxes and radio buttons

+
+
+
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+{% highlight html %} +
+
+ +
+
+
+
+ +
+
+ +
+
{% endhighlight %}

Optional icons in horizontal and inline forms

-- cgit v1.2.3 From 1136f9346adb1cc9ef1b22b7c91ec1f06c225bc7 Mon Sep 17 00:00:00 2001 From: Zac Echola Date: Wed, 2 Jul 2014 11:32:25 -0500 Subject: Moves checkbox/radios into "Validation states" example. --- docs/_includes/css/forms.html | 96 ++++++++++++++++++++----------------------- 1 file changed, 44 insertions(+), 52 deletions(-) (limited to 'docs/_includes') diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index c5d89c321..7fb07ec7c 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -521,6 +521,28 @@ +
+
+ +
+
+
+
+ +
+
+ +
+
{% highlight html %} @@ -536,6 +558,28 @@ +
+
+ +
+
+
+
+ +
+
+ +
+
{% endhighlight %}

With optional icons

@@ -579,58 +623,6 @@ -{% endhighlight %} - -

Checkboxes and radio buttons

-
-
-
-
- -
-
-
-
- -
-
- -
-
-
-
-{% highlight html %} -
-
- -
-
-
-
- -
-
- -
-
{% endhighlight %}

Optional icons in horizontal and inline forms

-- cgit v1.2.3 From afbe7114b4a362b6cae008328343d9e568c03457 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 2 Jul 2014 17:09:13 -0700 Subject: clarify the iOS virtual keyboard bug with respect to navbars --- docs/_includes/getting-started/browser-device-support.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/_includes') diff --git a/docs/_includes/getting-started/browser-device-support.html b/docs/_includes/getting-started/browser-device-support.html index 4140a9c22..0c7c1a4a9 100644 --- a/docs/_includes/getting-started/browser-device-support.html +++ b/docs/_includes/getting-started/browser-device-support.html @@ -158,7 +158,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {

Overflow and scrolling

Support for overflow: hidden on the <body> element is quite limited in iOS and Android. To that end, when you scroll past the top or bottom of a modal in either of those devices' browsers, the <body> content will begin to scroll.

Virtual keyboards

-

Also, note that if you're using inputs in your modal or navbar, iOS has a rendering bug that doesn't update the position of fixed elements when the virtual keyboard is triggered. A few workarounds for this include transforming your elements to position: absolute or invoking a timer on focus to try to correct the positioning manually. This is not handled by Bootstrap, so it is up to you to decide which solution is best for your application.

+

Also, note that if you're using a fixed navbar or using inputs within a modal, iOS has a rendering bug that doesn't update the position of fixed elements when the virtual keyboard is triggered. A few workarounds for this include transforming your elements to position: absolute or invoking a timer on focus to try to correct the positioning manually. This is not handled by Bootstrap, so it is up to you to decide which solution is best for your application.

Navbar Dropdowns

The .dropdown-backdrop element isn't used on iOS in the nav because of the complexity of z-indexing. Thus, to close dropdowns in navbars, you must directly click the dropdown element (or any other element which will fire a click event in iOS).

-- cgit v1.2.3 From ebdecacd650a766e8123dbe3f86c4aa0f9cd72b4 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 2 Jul 2014 22:06:28 -0700 Subject: fix up examples --- docs/_includes/css/forms.html | 48 +++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 22 deletions(-) (limited to 'docs/_includes') diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index 7fb07ec7c..15bfb93b0 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -521,25 +521,27 @@ -
-
-