From 754a2c16bda4976d13e1a8d12db662d581234368 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Mon, 30 Jan 2017 13:46:10 -0800 Subject: [PATCH] [Docs] WIP Style Guide Fixes #1233 --- .../styleguide/res/templates/controls.html | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/example/styleguide/res/templates/controls.html b/example/styleguide/res/templates/controls.html index 8f11dba4f1..1ea27ecfb4 100644 --- a/example/styleguide/res/templates/controls.html +++ b/example/styleguide/res/templates/controls.html @@ -93,4 +93,74 @@ + +
+

Checkboxes

+
+
+

Checkboxes use a combination of minimal additional markup with CSS to present a custom and common look-and-feel across platforms.

+

The basic structure is a label with a checkbox-type input and an em element inside. The em is needed as the holder of the custom element; the input itself is hidden. Putting everything inside the label allows the label itself to act as a clickable element.

+
+
+

Markup

+
+
+                
+ +

Example

+ +
+ +
+ +
+
+
+ +
+

Radio Buttons

+
+
+

Radio buttons use the same technique as checkboxes above.

+
+
+

Markup

+
+
+                
+ +

Example

+ +
+ +
+ +
+
+
+ + + + + + + \ No newline at end of file