OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 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.g
ithub.io/LICENSE.txt | 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.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/CONTRI
BUTORS.txt | 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
6 Code distributed by Google as part of the polymer project is also | 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/PATEN
TS.txt | 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
8 --><!-- | 8 --><!-- |
9 `paper-radio-button` is a button that can be either checked or unchecked. | 9 `paper-radio-button` is a button that can be either checked or unchecked. |
10 User can tap the radio button to check it. But it cannot be unchecked by | 10 User can tap the radio button to check it. But it cannot be unchecked by |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 paper-radio-button::shadow #ink[checked] { | 24 paper-radio-button::shadow #ink[checked] { |
25 color: #4285f4; | 25 color: #4285f4; |
26 } | 26 } |
27 | 27 |
28 To change the radio checked color: | 28 To change the radio checked color: |
29 | 29 |
30 paper-radio-button::shadow #onRadio { | 30 paper-radio-button::shadow #onRadio { |
31 background-color: #4285f4; | 31 background-color: #4285f4; |
32 } | 32 } |
33 | 33 |
| 34 paper-radio-button[checked]::shadow #offRadio { |
| 35 border-color: #4285f4; |
| 36 } |
| 37 |
34 To change the ink color for unchecked state: | 38 To change the ink color for unchecked state: |
35 | 39 |
36 paper-radio-button::shadow #ink { | 40 paper-radio-button::shadow #ink { |
37 color: #b5b5b5; | 41 color: #b5b5b5; |
38 } | 42 } |
39 | 43 |
40 To change the radio unchecked color: | 44 To change the radio unchecked color: |
41 | 45 |
42 paper-radio-button::shadow #offRadio { | 46 paper-radio-button::shadow #offRadio { |
43 border-color: #b5b5b5; | 47 border-color: #b5b5b5; |
(...skipping 20 matching lines...) Expand all Loading... |
64 <paper-ripple id="ink" class="circle recenteringTouch" checked?="{{!checked}
}"></paper-ripple> | 68 <paper-ripple id="ink" class="circle recenteringTouch" checked?="{{!checked}
}"></paper-ripple> |
65 | 69 |
66 </div> | 70 </div> |
67 | 71 |
68 <div id="radioLabel" aria-hidden="true" hidden?="{{!label}}">{{label}}<content
></content></div> | 72 <div id="radioLabel" aria-hidden="true" hidden?="{{!label}}">{{label}}<content
></content></div> |
69 | 73 |
70 </template> | 74 </template> |
71 | 75 |
72 </polymer-element> | 76 </polymer-element> |
73 <script charset="utf-8" src="paper-radio-button-extracted.js"></script></body></
html> | 77 <script charset="utf-8" src="paper-radio-button-extracted.js"></script></body></
html> |
OLD | NEW |