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

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

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 6 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
(Empty)
1 <!--
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
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
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
8 --><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-styles/default-theme.html">
11 <link rel="import" href="../paper-behaviors/paper-radio-button-behavior.html">
12
13 <!--
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
16 tapping once checked.
17
18 Use `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.
20
21 Example:
22
23 <paper-radio-button></paper-radio-button>
24
25 ### Styling
26
27 The following custom properties and mixins are available for styling:
28
29 Custom property | Description | Default
30 ----------------|-------------|----------
31 `--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`
33 `--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`
35 `--paper-radio-button-label-color` | Label color | `--primary-text-color`
36
37 @group Paper Elements
38 @element paper-radio-button
39 @hero hero.svg
40 @demo demo/index.html
41 -->
42
43 <style is="custom-style">
44 :root {
45 --paper-radio-button-unchecked-color: var(--primary-text-color);
46 --paper-radio-button-unchecked-ink-color: var(--primary-text-color);
47
48 --paper-radio-button-checked-color: var(--default-primary-color);
49 --paper-radio-button-checked-ink-color: var(--default-primary-color);
50
51 --paper-radio-button-label-color: var(--primary-text-color);
52 }
53 </style>
54
55 </head><body><dom-module id="paper-radio-button">
56
57 <link rel="import" type="css" href="paper-radio-button.css">
58
59 <template>
60
61 <div id="radioContainer">
62 <div id="offRadio"></div>
63 <div id="onRadio"></div>
64 <paper-ripple id="ink" class="circle" center="" checked$="[[checked]]"></p aper-ripple>
65 </div>
66
67 <div id="radioLabel" aria-hidden="true"><content></content></div>
68
69 </template>
70
71 </dom-module>
72 <script src="paper-radio-button-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698