| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/assert.html"> | 1 <link rel="import" href="chrome://resources/html/assert.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/paper-button/paper-butt
on.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be
havior.html"> | 4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be
havior.html"> |
| 5 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in
dicator.html"> | 5 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in
dicator.html"> |
| 6 <link rel="import" href="pref_control_behavior.html"> | 6 <link rel="import" href="pref_control_behavior.html"> |
| 7 <link rel="import" href="../i18n_setup.html"> | 7 <link rel="import" href="../i18n_setup.html"> |
| 8 <link rel="import" href="../settings_shared_css.html"> | 8 <link rel="import" href="../settings_shared_css.html"> |
| 9 | 9 |
| 10 <dom-module id="controlled-button"> | 10 <dom-module id="controlled-button"> |
| 11 <template> | 11 <template> |
| 12 <style include="settings-shared"> | 12 <style include="settings-shared"> |
| 13 :host { | 13 :host { |
| 14 --justify-margin: 8px; |
| 14 align-items: center; | 15 align-items: center; |
| 15 display: flex; | 16 display: flex; |
| 16 --justify-margin: 18px; | |
| 17 } | 17 } |
| 18 | 18 |
| 19 :host([enforced_]) { | 19 :host([enforced_]) { |
| 20 /* Disable pointer events for this whole element, as outer on-tap gets | 20 /* Disable pointer events for this whole element, as outer on-tap gets |
| 21 * triggered when clicking/tapping anywhere in :host. */ | 21 * triggered when clicking/tapping anywhere in :host. */ |
| 22 pointer-events: none; | 22 pointer-events: none; |
| 23 } | 23 } |
| 24 | 24 |
| 25 cr-policy-pref-indicator { | 25 cr-policy-pref-indicator { |
| 26 /* Enable pointer events for the indicator so :hover works. Disable | 26 /* Enable pointer events for the indicator so :hover works. Disable |
| (...skipping 19 matching lines...) Expand all Loading... |
| 46 | 46 |
| 47 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]" restamp> | 47 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]" restamp> |
| 48 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_" | 48 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_" |
| 49 icon-aria-label="[[label]]"> | 49 icon-aria-label="[[label]]"> |
| 50 </cr-policy-pref-indicator> | 50 </cr-policy-pref-indicator> |
| 51 </template> | 51 </template> |
| 52 | 52 |
| 53 </template> | 53 </template> |
| 54 <script src="controlled_button.js"></script> | 54 <script src="controlled_button.js"></script> |
| 55 </dom-module> | 55 </dom-module> |
| OLD | NEW |