Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: third_party/polymer/v0_8/components/paper-checkbox/README.md

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v0_8/components/paper-checkbox/README.md
diff --git a/third_party/polymer/v0_8/components/paper-checkbox/README.md b/third_party/polymer/v0_8/components/paper-checkbox/README.md
index 0fb72833666a97f6883ac78afcc6609aacf972d5..2269079ed246d7aa3b2ba8ccddeb5d3f29c11098 100644
--- a/third_party/polymer/v0_8/components/paper-checkbox/README.md
+++ b/third_party/polymer/v0_8/components/paper-checkbox/README.md
@@ -1 +1,31 @@
# paper-checkbox
+
+`paper-checkbox` is a button that can be either checked or unchecked. User
+can tap the checkbox to check or uncheck it. Usually you use checkboxes
+to allow user to select multiple options from a set. If you have a single
+ON/OFF option, avoid using a single checkbox and use `paper-toggle-button`
+instead.
+
+Example:
+
+```html
+<paper-checkbox>label</paper-checkbox>
+
+<paper-checkbox checked>label</paper-checkbox>
+```
+
+Styling a checkbox:
+
+```html
+<style is="custom-style">
+ paper-checkbox {
+ /* Unhecked state colors. */
+ --paper-checkbox-unchecked-color: #5a5a5a;
+ --paper-checkbox-unchecked-ink-color: #5a5a5a;
+
+ /* Checked state colors. */
+ --paper-checkbox-checked-color: #009688;
+ --paper-checkbox-checked-ink-color: #009688;
+ }
+</style>
+```

Powered by Google App Engine
This is Rietveld 408576698