2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9 `paper-checkbox` is a button that can be either checked or unchecked. User
10 can tap the checkbox to check or uncheck it. Usually you use checkboxes
11 to allow user to select multiple options from a set. If you have a single
12 ON/OFF option, avoid using a single checkbox and use `paper-toggle-button`
17 <paper-checkbox></paper-checkbox>
19 <paper-checkbox checked></paper-checkbox>
23 To change the ink color for checked state:
25 paper-checkbox::shadow #ink[checked] {
29 To change the checkbox checked color:
31 paper-checkbox::shadow #checkbox.checked {
32 background-color: #4285f4;
33 border-color: #4285f4;
36 To change the ink color for unchecked state:
38 paper-checkbox::shadow #ink {
42 To change the checbox unchecked color:
44 paper-checkbox::shadow #checkbox {
45 border-color: #b5b5b5;
49 @element paper-checkbox
50 @extends paper-radio-button
52 --><html><head><link rel=
"import" href=
"../paper-radio-button/paper-radio-button.html">
54 </head><body><polymer-element name=
"paper-checkbox" extends=
"paper-radio-button" role=
"checkbox" assetpath=
"">
57 <link rel=
"stylesheet" href=
"paper-checkbox.css">
59 <div id=
"checkboxContainer" class=
"{{ {labeled: label} | tokenList }}">
61 <paper-ripple id=
"ink" class=
"circle recenteringTouch" checked?=
"{{!checked}}"></paper-ripple>
64 <div id=
"checkmark" on-animationend=
"{{checkboxAnimationEnd}}" on-webkitanimationend=
"{{checkboxAnimationEnd}}"></div>
69 <div id=
"checkboxLabel" hidden?=
"{{!label}}">{{label}}
<content></content></div>
74 <script charset=
"utf-8" src=
"paper-checkbox-extracted.js"></script></body></html>