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

Side by Side Diff: chrome/browser/resources/settings/controls/controlled_radio_button.html

Issue 2821383002: MD Settings: make [un]controlled radio buttons actionable (cursor: pointer) (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html"> 1 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior /iron-a11y-keys-behavior.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior /iron-a11y-keys-behavior.html">
4 <link rel="import" href="pref_control_behavior.html"> 4 <link rel="import" href="pref_control_behavior.html">
5 <link rel="import" href="../prefs/pref_util.html"> 5 <link rel="import" href="../prefs/pref_util.html">
6 <link rel="import" href="../settings_shared_css.html"> 6 <link rel="import" href="../settings_shared_css.html">
7 7
8 <dom-module id="controlled-radio-button"> 8 <dom-module id="controlled-radio-button">
9 <template> 9 <template>
10 <style include="settings-shared"> 10 <style include="settings-shared">
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 color: var(--paper-radio-button-unchecked-ink-color, 76 color: var(--paper-radio-button-unchecked-ink-color,
77 --primary-text-color); 77 --primary-text-color);
78 opacity: .6; 78 opacity: .6;
79 } 79 }
80 80
81 :host([checked]) paper-ripple { 81 :host([checked]) paper-ripple {
82 color: var(--paper-radio-button-checked-ink-color, 82 color: var(--paper-radio-button-checked-ink-color,
83 --primary-text-color); 83 --primary-text-color);
84 } 84 }
85 85
86 :host(:not([controlled_])) {
dpapad 2017/04/18 18:58:32 Can radio buttons be disabled otherwise? For examp
Dan Beam 2017/04/18 19:00:37 no
Dan Beam 2017/04/18 19:10:49 that was the short answer. the longer answer is t
Dan Beam 2017/04/18 19:12:22 also, i'm not really sure how [disabled] works in
87 @apply(--settings-actionable);
88 }
89
86 :host([controlled_]) { 90 :host([controlled_]) {
87 /* Disable pointer events for this whole element, as outer on-tap gets 91 /* Disable pointer events for this whole element, as outer on-tap gets
88 * triggered when clicking/tapping anywhere in :host. */ 92 * triggered when clicking/tapping anywhere in :host. */
89 pointer-events: none; 93 pointer-events: none;
90 } 94 }
91 95
92 :host([controlled_]) :-webkit-any(.circle, .disc) { 96 :host([controlled_]) :-webkit-any(.circle, .disc) {
93 opacity: .5; 97 opacity: .5;
94 } 98 }
95 99
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 132
129 <template is="dom-if" if="[[showIndicator_(controlled_, name, pref.*)]]"> 133 <template is="dom-if" if="[[showIndicator_(controlled_, name, pref.*)]]">
130 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_" 134 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_"
131 icon-aria-label="[[label]]"> 135 icon-aria-label="[[label]]">
132 </cr-policy-pref-indicator> 136 </cr-policy-pref-indicator>
133 </template> 137 </template>
134 138
135 </template> 139 </template>
136 <script src="controlled_radio_button.js"></script> 140 <script src="controlled_radio_button.js"></script>
137 </dom-module> 141 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698