OLD | NEW |
1 | 1 |
2 <!--- | 2 <!--- |
3 | 3 |
4 This README is automatically generated from the comments in these files: | 4 This README is automatically generated from the comments in these files: |
5 paper-radio-button.html | 5 paper-radio-button.html |
6 | 6 |
7 Edit those files, and our readme bot will duplicate them over here! | 7 Edit those files, and our readme bot will duplicate them over here! |
8 Edit this file, and the bot will squash your changes :) | 8 Edit this file, and the bot will squash your changes :) |
9 | 9 |
| 10 The bot does some handling of markdown. Please file a bug if it does the wrong |
| 11 thing! https://github.com/PolymerLabs/tedium/issues |
| 12 |
10 --> | 13 --> |
11 | 14 |
12 [](https://travis-ci.org/PolymerElements/paper-radio-button) | 15 [](https://travis-ci.org/PolymerElements/paper-radio-button) |
13 | 16 |
14 _[Demo and API Docs](https://elements.polymer-project.org/elements/paper-radio-b
utton)_ | 17 _[Demo and API docs](https://elements.polymer-project.org/elements/paper-radio-b
utton)_ |
15 | 18 |
16 | 19 |
17 ##<paper-radio-button> | 20 ##<paper-radio-button> |
18 | 21 |
19 | |
20 Material design: [Radio button](https://www.google.com/design/spec/components/se
lection-controls.html#selection-controls-radio-button) | 22 Material design: [Radio button](https://www.google.com/design/spec/components/se
lection-controls.html#selection-controls-radio-button) |
21 | 23 |
22 `paper-radio-button` is a button that can be either checked or unchecked. | 24 `paper-radio-button` is a button that can be either checked or unchecked. |
23 User can tap the radio button to check or uncheck it. | 25 User can tap the radio button to check or uncheck it. |
24 | 26 |
25 Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons | 27 Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons |
26 are inside a radio group, exactly one radio button in the group can be checked | 28 are inside a radio group, exactly one radio button in the group can be checked |
27 at any time. | 29 at any time. |
28 | 30 |
29 Example: | 31 Example: |
30 | 32 |
31 <paper-radio-button></paper-radio-button> | 33 ```html |
32 <paper-radio-button>Item label</paper-radio-button> | 34 <paper-radio-button></paper-radio-button> |
| 35 <paper-radio-button>Item label</paper-radio-button> |
| 36 ``` |
33 | 37 |
34 ### Styling | 38 ### Styling |
35 | 39 |
36 The following custom properties and mixins are available for styling: | 40 The following custom properties and mixins are available for styling: |
37 | 41 |
38 Custom property | Description | Default | 42 | Custom property | Description | Default | |
39 ----------------|-------------|---------- | 43 | --- | --- | --- | |
40 `--paper-radio-button-unchecked-background-color` | Radio button background colo
r when the input is not checked | `transparent` | 44 | `--paper-radio-button-unchecked-background-color` | Radio button background co
lor when the input is not checked | `transparent` | |
41 `--paper-radio-button-unchecked-color` | Radio button color when the input is no
t checked | `--primary-text-color` | 45 | `--paper-radio-button-unchecked-color` | Radio button color when the input is
not checked | `--primary-text-color` | |
42 `--paper-radio-button-unchecked-ink-color` | Selected/focus ripple color when th
e input is not checked | `--primary-text-color` | 46 | `--paper-radio-button-unchecked-ink-color` | Selected/focus ripple color when
the input is not checked | `--primary-text-color` | |
43 `--paper-radio-button-checked-color` | Radio button color when the input is chec
ked | `--default-primary-color` | 47 | `--paper-radio-button-checked-color` | Radio button color when the input is ch
ecked | `--primary-color` | |
44 `--paper-radio-button-checked-ink-color` | Selected/focus ripple color when the
input is checked | `--default-primary-color` | 48 | `--paper-radio-button-checked-ink-color` | Selected/focus ripple color when th
e input is checked | `--primary-color` | |
45 `--paper-radio-button-label-color` | Label color | `--primary-text-color` | 49 | `--paper-radio-button-label-color` | Label color | `--primary-text-color` | |
46 `--paper-radio-button-label-spacing` | Spacing between the label and the button
| `10px` | 50 | `--paper-radio-button-label-spacing` | Spacing between the label and the butto
n | `10px` | |
| 51 |
| 52 This element applies the mixin `--paper-font-common-base` but does not import `p
aper-styles/typography.html`. |
| 53 In order to apply the `Roboto` font to this element, make sure you've imported `
paper-styles/typography.html`. |
47 | 54 |
48 | 55 |
OLD | NEW |