| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 2 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 | 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 --><html><head><link rel="import" href="../polymer/polymer.html"> | 8 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 9 <link rel="import" href="../paper-ripple/paper-ripple.html"> | 9 <link rel="import" href="../paper-ripple/paper-ripple.html"> |
| 10 <link rel="import" href="../paper-styles/default-theme.html"> | 10 <link rel="import" href="../paper-styles/default-theme.html"> |
| 11 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> | 11 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> |
| 12 | 12 |
| 13 <!-- | 13 <!-- |
| 14 `paper-radio-button` is a button that can be either checked or unchecked. | 14 `paper-radio-button` is a button that can be either checked or unchecked. |
| 15 User can tap the radio button to check it. But it cannot be unchecked by | 15 User can tap the radio button to check or uncheck it. |
| 16 tapping once checked. | |
| 17 | 16 |
| 18 Use `paper-radio-group` to group a set of radio buttons. When radio buttons | 17 Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons |
| 19 are inside a radio group, only one radio button in the group can be checked. | 18 are inside a radio group, exactly one radio button in the group can be checked |
| 19 at any time. |
| 20 | 20 |
| 21 Example: | 21 Example: |
| 22 | 22 |
| 23 <paper-radio-button></paper-radio-button> | 23 <paper-radio-button></paper-radio-button> |
| 24 <paper-radio-button>Item label</paper-radio-button> |
| 24 | 25 |
| 25 ### Styling | 26 ### Styling |
| 26 | 27 |
| 27 The following custom properties and mixins are available for styling: | 28 The following custom properties and mixins are available for styling: |
| 28 | 29 |
| 29 Custom property | Description | Default | 30 Custom property | Description | Default |
| 30 ----------------|-------------|---------- | 31 ----------------|-------------|---------- |
| 32 `--paper-radio-button-unchecked-background-color` | Radio button background colo
r when the input is not checked | `transparent` |
| 31 `--paper-radio-button-unchecked-color` | Radio button color when the input is no
t checked | `--primary-text-color` | 33 `--paper-radio-button-unchecked-color` | Radio button color when the input is no
t checked | `--primary-text-color` |
| 32 `--paper-radio-button-unchecked-ink-color` | Selected/focus ripple color when th
e input is not checked | `--primary-text-color` | 34 `--paper-radio-button-unchecked-ink-color` | Selected/focus ripple color when th
e input is not checked | `--primary-text-color` |
| 33 `--paper-radio-button-checked-color` | Radio button color when the input is chec
ked | `--default-primary-color` | 35 `--paper-radio-button-checked-color` | Radio button color when the input is chec
ked | `--default-primary-color` |
| 34 `--paper-radio-button-checked-ink-color` | Selected/focus ripple color when the
input is checked | `--default-primary-color` | 36 `--paper-radio-button-checked-ink-color` | Selected/focus ripple color when the
input is checked | `--default-primary-color` |
| 35 `--paper-radio-button-label-color` | Label color | `--primary-text-color` | 37 `--paper-radio-button-label-color` | Label color | `--primary-text-color` |
| 36 | 38 |
| 37 @group Paper Elements | 39 @group Paper Elements |
| 38 @element paper-radio-button | 40 @element paper-radio-button |
| 39 @hero hero.svg | 41 @hero hero.svg |
| 40 @demo demo/index.html | 42 @demo demo/index.html |
| (...skipping 10 matching lines...) Expand all Loading... |
| 51 <div id="onRadio"></div> | 53 <div id="onRadio"></div> |
| 52 <paper-ripple id="ink" class="circle" center="" checked$="[[checked]]"></p
aper-ripple> | 54 <paper-ripple id="ink" class="circle" center="" checked$="[[checked]]"></p
aper-ripple> |
| 53 </div> | 55 </div> |
| 54 | 56 |
| 55 <div id="radioLabel" aria-hidden="true"><content></content></div> | 57 <div id="radioLabel" aria-hidden="true"><content></content></div> |
| 56 | 58 |
| 57 </template> | 59 </template> |
| 58 | 60 |
| 59 </dom-module> | 61 </dom-module> |
| 60 <script src="paper-radio-button-extracted.js"></script></body></html> | 62 <script src="paper-radio-button-extracted.js"></script></body></html> |
| OLD | NEW |