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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-checkbox/paper-checkbox.html

Issue 1187823002: Update Polymer components and re-run reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --><html><head><link rel="import" href="../polymer/polymer.html"> 9 --><html><head><link rel="import" href="../polymer/polymer.html">
10 <link rel="import" href="../paper-ripple/paper-ripple.html"> 10 <link rel="import" href="../paper-ripple/paper-ripple.html">
11 <link rel="import" href="../paper-styles/default-theme.html"> 11 <link rel="import" href="../paper-styles/default-theme.html">
12 <link rel="import" href="../paper-behaviors/paper-radio-button-behavior.html"> 12 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html">
13 13
14 <!-- 14 <!--
15 15
16 `paper-checkbox` is a button that can be either checked or unchecked. User 16 `paper-checkbox` is a button that can be either checked or unchecked. User
17 can tap the checkbox to check or uncheck it. Usually you use checkboxes 17 can tap the checkbox to check or uncheck it. Usually you use checkboxes
18 to allow user to select multiple options from a set. If you have a single 18 to allow user to select multiple options from a set. If you have a single
19 ON/OFF option, avoid using a single checkbox and use `paper-toggle-button` 19 ON/OFF option, avoid using a single checkbox and use `paper-toggle-button`
20 instead. 20 instead.
21 21
22 Example: 22 Example:
(...skipping 10 matching lines...) Expand all
33 ----------------|-------------|---------- 33 ----------------|-------------|----------
34 `--paper-checkbox-unchecked-color` | Checkbox color when the input is not checke d | `--primary-text-color` 34 `--paper-checkbox-unchecked-color` | Checkbox color when the input is not checke d | `--primary-text-color`
35 `--paper-checkbox-unchecked-ink-color` | Selected/focus ripple color when the in put is not checked | `--primary-text-color` 35 `--paper-checkbox-unchecked-ink-color` | Selected/focus ripple color when the in put is not checked | `--primary-text-color`
36 `--paper-checkbox-checked-color` | Checkbox color when the input is checked | `- -default-primary-color` 36 `--paper-checkbox-checked-color` | Checkbox color when the input is checked | `- -default-primary-color`
37 `--paper-checkbox-checked-ink-color` | Selected/focus ripple color when the inpu t is checked | `--default-primary-color` 37 `--paper-checkbox-checked-ink-color` | Selected/focus ripple color when the inpu t is checked | `--default-primary-color`
38 `--paper-checkbox-label-color` | Label color | `--primary-text-color` 38 `--paper-checkbox-label-color` | Label color | `--primary-text-color`
39 39
40 @demo demo/index.html 40 @demo demo/index.html
41 --> 41 -->
42 42
43 <style is="custom-style">
44 :root {
45 --paper-checkbox-unchecked-color: var(--primary-text-color);
46 --paper-checkbox-unchecked-ink-color: var(--primary-text-color);
47
48 --paper-checkbox-checked-color: var(--default-primary-color);
49 --paper-checkbox-checked-ink-color: var(--default-primary-color);
50
51 --paper-checkbox-label-color: var(--primary-text-color);
52 }
53 </style>
54
55 </head><body><dom-module id="paper-checkbox"> 43 </head><body><dom-module id="paper-checkbox">
56 <link rel="import" type="css" href="paper-checkbox.css"> 44 <link rel="import" type="css" href="paper-checkbox.css">
57 45
58 <template> 46 <template>
59 47
60 <div id="checkboxContainer"> 48 <div id="checkboxContainer">
61 <paper-ripple id="ink" class="circle" center="" checked$="[[checked]]"></p aper-ripple> 49 <paper-ripple id="ink" class="circle" center="" checked$="[[checked]]"></p aper-ripple>
62 <div id="checkbox" class$="[[_computeCheckboxClass(checked)]]"> 50 <div id="checkbox" class$="[[_computeCheckboxClass(checked)]]">
63 <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]]"></div> 51 <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]]"></div>
64 </div> 52 </div>
65 </div> 53 </div>
66 54
67 <div id="checkboxLabel" aria-hidden="true"><content></content></div> 55 <div id="checkboxLabel" aria-hidden="true"><content></content></div>
68 56
69 </template> 57 </template>
70 58
71 </dom-module> 59 </dom-module>
72 <script src="paper-checkbox-extracted.js"></script></body></html> 60 <script src="paper-checkbox-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698