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

Side by Side Diff: third_party/polymer/v1_0/components/paper-radio-button/README.md

Issue 1221923003: Update bower.json for Polymer elements and add PRESUBMIT.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 # paper-radio-button 1 # paper-radio-button
2 2
3 `paper-radio-button` is a button that can be either checked or unchecked. 3 `paper-radio-button` is a button that can be either checked or unchecked.
4 User can tap the radio button to check it. But it cannot be unchecked by 4 User can tap the radio button to check or uncheck it.
5 tapping once checked.
6 5
7 Use `paper-radio-group` to group a set of radio buttons. When radio buttons 6 Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons
8 are inside a radio group, only one radio button in the group can be checked. 7 are inside a radio group, exactly one radio button in the group can be checked
9 8 at any time.
10 Example: 9 Example:
11 10
12 ```html 11 ```html
13 <paper-radio-button></paper-radio-button> 12 <paper-radio-button></paper-radio-button>
13 <paper-radio-button>Item label</paper-radio-button>
14 ``` 14 ```
15 Styling a radio button: 15 Styling a radio button:
16 16
17 ```html 17 ```html
18 <style is="custom-style"> 18 <style is="custom-style">
19 :root { 19 :root {
20 /* Unchecked state colors. */ 20 /* Unchecked state colors. */
21 --paper-radio-button-unchecked-color: #5a5a5a; 21 --paper-radio-button-unchecked-color: #5a5a5a;
22 --paper-radio-button-unchecked-background-color: #fff;
22 --paper-radio-button-unchecked-ink-color: #5a5a5a; 23 --paper-radio-button-unchecked-ink-color: #5a5a5a;
23 24
24 /* Checked state colors. */ 25 /* Checked state colors. */
25 --paper-radio-button-checked-color: #009688; 26 --paper-radio-button-checked-color: #009688;
26 --paper-radio-button-checked-ink-color: #0f9d58; 27 --paper-radio-button-checked-ink-color: #0f9d58;
28
29 --paper-radio-button-label-color: black;
27 } 30 }
28 </style> 31 </style>
29 ``` 32 ```
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698