| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license |
| 2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 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 | 4 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 | 5 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 | 6 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 | 7 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 | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 8 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 9 <link rel="import" href="../paper-ripple/paper-ripple.html"> | 10 <link rel="import" href="../paper-ripple/paper-ripple.html"> |
| 10 <link rel="import" href="../paper-styles/default-theme.html"> | 11 <link rel="import" href="../paper-styles/default-theme.html"> |
| 11 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> | 12 <link rel="import" href="../paper-behaviors/paper-checked-element-behavior.html"
> |
| 12 <link rel="import" href="../iron-checked-element-behavior/iron-checked-element-b
ehavior.html"> | |
| 13 | 13 |
| 14 <!-- | 14 <!-- |
| 15 Material design: [Radio button](https://www.google.com/design/spec/components/se
lection-controls.html#selection-controls-radio-button) |
| 16 |
| 15 `paper-radio-button` is a button that can be either checked or unchecked. | 17 `paper-radio-button` is a button that can be either checked or unchecked. |
| 16 User can tap the radio button to check or uncheck it. | 18 User can tap the radio button to check or uncheck it. |
| 17 | 19 |
| 18 Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons | 20 Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons |
| 19 are inside a radio group, exactly one radio button in the group can be checked | 21 are inside a radio group, exactly one radio button in the group can be checked |
| 20 at any time. | 22 at any time. |
| 21 | 23 |
| 22 Example: | 24 Example: |
| 23 | 25 |
| 24 <paper-radio-button></paper-radio-button> | 26 <paper-radio-button></paper-radio-button> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 37 `--paper-radio-button-checked-ink-color` | Selected/focus ripple color when the
input is checked | `--default-primary-color` | 39 `--paper-radio-button-checked-ink-color` | Selected/focus ripple color when the
input is checked | `--default-primary-color` |
| 38 `--paper-radio-button-label-color` | Label color | `--primary-text-color` | 40 `--paper-radio-button-label-color` | Label color | `--primary-text-color` |
| 39 | 41 |
| 40 @group Paper Elements | 42 @group Paper Elements |
| 41 @element paper-radio-button | 43 @element paper-radio-button |
| 42 @hero hero.svg | 44 @hero hero.svg |
| 43 @demo demo/index.html | 45 @demo demo/index.html |
| 44 --> | 46 --> |
| 45 | 47 |
| 46 </head><body><dom-module id="paper-radio-button"> | 48 </head><body><dom-module id="paper-radio-button"> |
| 47 <template> | 49 <template strip-whitespace=""> |
| 48 <style> | 50 <style> |
| 49 :host { | 51 :host { |
| 50 display: inline-block; | 52 display: inline-block; |
| 51 white-space: nowrap; | 53 white-space: nowrap; |
| 52 } | 54 } |
| 53 | 55 |
| 54 :host(:focus) { | 56 :host(:focus) { |
| 55 outline: none; | 57 outline: none; |
| 56 } | 58 } |
| 57 | 59 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 150 |
| 149 :host([disabled]) #radioLabel { | 151 :host([disabled]) #radioLabel { |
| 150 /* slightly darker than the button, so that it's readable */ | 152 /* slightly darker than the button, so that it's readable */ |
| 151 opacity: 0.65; | 153 opacity: 0.65; |
| 152 } | 154 } |
| 153 </style> | 155 </style> |
| 154 | 156 |
| 155 <div id="radioContainer"> | 157 <div id="radioContainer"> |
| 156 <div id="offRadio"></div> | 158 <div id="offRadio"></div> |
| 157 <div id="onRadio"></div> | 159 <div id="onRadio"></div> |
| 158 <paper-ripple id="ink" class="circle" center="" checked$="[[checked]]"></p
aper-ripple> | |
| 159 </div> | 160 </div> |
| 160 | 161 |
| 161 <div id="radioLabel"><content></content></div> | 162 <div id="radioLabel"><content></content></div> |
| 162 | 163 |
| 163 </template> | 164 </template> |
| 164 | 165 |
| 165 </dom-module> | 166 </dom-module> |
| 166 <script src="paper-radio-button-extracted.js"></script></body></html> | 167 <script src="paper-radio-button-extracted.js"></script></body></html> |
| OLD | NEW |