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 border-color: #4285f4;
35 To change the ink color for unchecked state:
37 paper-checkbox::shadow #ink {
41 To change the checbox unchecked color:
43 paper-checkbox::shadow #checkbox {
44 border-color: #b5b5b5;
48 @element paper-checkbox
49 @extends paper-radio-button
51 --><html><head><link rel=
"import" href=
"../paper-radio-button/paper-radio-button.html">
53 </head><body><polymer-element name=
"paper-checkbox" extends=
"paper-radio-button" role=
"checkbox" assetpath=
"">
56 <link rel=
"stylesheet" href=
"paper-checkbox.css">
58 <div id=
"checkboxContainer" class=
"{{ {labeled: label} | tokenList }}">
60 <paper-ripple id=
"ink" class=
"circle recenteringTouch" checked?=
"{{!checked}}"></paper-ripple>
62 <div id=
"checkbox" on-animationend=
"{{checkboxAnimationEnd}}" on-webkitanimationend=
"{{checkboxAnimationEnd}}"></div>
66 <div id=
"checkboxLabel" hidden?=
"{{!label}}">{{label}}
<content></content></div>
71 <script src=
"paper-checkbox-extracted.js"></script></body></html>