Mechanical rename of base::debug -> base::trace_event [final pass]
[chromium-blink-merge.git] / third_party / polymer / components-chromium / paper-checkbox / paper-checkbox.html
blobadb429dcf431b674286c6039ce23a52164405567
1 <!--
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
8 --><!--
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`
13 instead.
15 Example:
17 <paper-checkbox></paper-checkbox>
19 <paper-checkbox checked></paper-checkbox>
21 Styling checkbox:
23 To change the ink color for checked state:
25 paper-checkbox::shadow #ink[checked] {
26 color: #4285f4;
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 {
38 color: #b5b5b5;
41 To change the checbox unchecked color:
43 paper-checkbox::shadow #checkbox {
44 border-color: #b5b5b5;
47 @group Paper Elements
48 @element paper-checkbox
49 @extends paper-radio-button
50 @homepage github.io
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="">
54 <template>
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>
64 </div>
66 <div id="checkboxLabel" hidden?="{{!label}}">{{label}}<content></content></div>
68 </template>
70 </polymer-element>
71 <script src="paper-checkbox-extracted.js"></script></body></html>