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

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

Issue 1215543002: Remove Polymer 0.5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test 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
(Empty)
1 <!--
2 Copyright (c) 2014 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 --><!--
9 `paper-radio-button` is a button that can be either checked or unchecked.
10 User can tap the radio button to check it. But it cannot be unchecked by
11 tapping once checked.
12
13 Use `paper-radio-group` to group a set of radio buttons. When radio buttons
14 are inside a radio group, only one radio button in the group can be checked.
15
16 Example:
17
18 <paper-radio-button></paper-radio-button>
19
20 Styling radio button:
21
22 To change the ink color for checked state:
23
24 paper-radio-button::shadow #ink[checked] {
25 color: #4285f4;
26 }
27
28 To change the radio checked color:
29
30 paper-radio-button::shadow #onRadio {
31 background-color: #4285f4;
32 }
33
34 paper-radio-button[checked]::shadow #offRadio {
35 border-color: #4285f4;
36 }
37
38 To change the ink color for unchecked state:
39
40 paper-radio-button::shadow #ink {
41 color: #b5b5b5;
42 }
43
44 To change the radio unchecked color:
45
46 paper-radio-button::shadow #offRadio {
47 border-color: #b5b5b5;
48 }
49
50 @group Paper Elements
51 @element paper-radio-button
52 @homepage github.io
53 --><html><head><link rel="import" href="../paper-ripple/paper-ripple.html">
54 <link rel="import" href="../core-a11y-keys/core-a11y-keys.html">
55
56 </head><body><polymer-element name="paper-radio-button" role="radio" tabindex="0 " aria-checked="false" assetpath="">
57 <template>
58
59 <link rel="stylesheet" href="paper-radio-button.css">
60
61 <core-a11y-keys target="{{}}" keys="space" on-keys-pressed="{{tap}}"></core-a1 1y-keys>
62
63 <div id="radioContainer" class="{{ {labeled: label} | tokenList }}">
64
65 <div id="offRadio"></div>
66 <div id="onRadio"></div>
67
68 <paper-ripple id="ink" class="circle recenteringTouch" checked?="{{!checked} }"></paper-ripple>
69
70 </div>
71
72 <div id="radioLabel" aria-hidden="true" hidden?="{{!label}}">{{label}}<content ></content></div>
73
74 </template>
75
76 </polymer-element>
77 <script charset="utf-8" src="paper-radio-button-extracted.js"></script></body></ html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698