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

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

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 <!-- 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 --> 8 -->
9 9
10 <link rel="import" href="../polymer/polymer.html"> 10 <link rel="import" href="../polymer/polymer.html">
11 <link rel="import" href="../paper-ripple/paper-ripple.html"> 11 <link rel="import" href="../paper-ripple/paper-ripple.html">
12 <link rel="import" href="../paper-styles/default-theme.html"> 12 <link rel="import" href="../paper-styles/default-theme.html">
13 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> 13 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html">
14 14
15 <!-- 15 <!--
16 `paper-radio-button` is a button that can be either checked or unchecked. 16 `paper-radio-button` is a button that can be either checked or unchecked.
17 User can tap the radio button to check it. But it cannot be unchecked by 17 User can tap the radio button to check or uncheck it.
18 tapping once checked.
19 18
20 Use `paper-radio-group` to group a set of radio buttons. When radio buttons 19 Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons
21 are inside a radio group, only one radio button in the group can be checked. 20 are inside a radio group, exactly one radio button in the group can be checked
21 at any time.
22 22
23 Example: 23 Example:
24 24
25 <paper-radio-button></paper-radio-button> 25 <paper-radio-button></paper-radio-button>
26 <paper-radio-button>Item label</paper-radio-button>
26 27
27 ### Styling 28 ### Styling
28 29
29 The following custom properties and mixins are available for styling: 30 The following custom properties and mixins are available for styling:
30 31
31 Custom property | Description | Default 32 Custom property | Description | Default
32 ----------------|-------------|---------- 33 ----------------|-------------|----------
34 `--paper-radio-button-unchecked-background-color` | Radio button background colo r when the input is not checked | `transparent`
33 `--paper-radio-button-unchecked-color` | Radio button color when the input is no t checked | `--primary-text-color` 35 `--paper-radio-button-unchecked-color` | Radio button color when the input is no t 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` 36 `--paper-radio-button-unchecked-ink-color` | Selected/focus ripple color when th e input is not checked | `--primary-text-color`
35 `--paper-radio-button-checked-color` | Radio button color when the input is chec ked | `--default-primary-color` 37 `--paper-radio-button-checked-color` | Radio button color when the input is chec ked | `--default-primary-color`
36 `--paper-radio-button-checked-ink-color` | Selected/focus ripple color when the input is checked | `--default-primary-color` 38 `--paper-radio-button-checked-ink-color` | Selected/focus ripple color when the input is checked | `--default-primary-color`
37 `--paper-radio-button-label-color` | Label color | `--primary-text-color` 39 `--paper-radio-button-label-color` | Label color | `--primary-text-color`
38 40
39 @group Paper Elements 41 @group Paper Elements
40 @element paper-radio-button 42 @element paper-radio-button
41 @hero hero.svg 43 @hero hero.svg
42 @demo demo/index.html 44 @demo demo/index.html
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 129
128 _checkedChanged: function() { 130 _checkedChanged: function() {
129 this.setAttribute('aria-checked', this.checked ? 'true' : 'false'); 131 this.setAttribute('aria-checked', this.checked ? 'true' : 'false');
130 this.active = this.checked; 132 this.active = this.checked;
131 this.fire('iron-change'); 133 this.fire('iron-change');
132 } 134 }
133 }) 135 })
134 </script> 136 </script>
135 137
136 </dom-module> 138 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698