Index: chrome/browser/resources/settings/controls/controlled_button.html |
diff --git a/chrome/browser/resources/settings/controls/controlled_button.html b/chrome/browser/resources/settings/controls/controlled_button.html |
index 9868ce04efb72caf2cab394fa1bdc87ecdad5c92..57d6a562f2b816b2749a8f2e19bcea045f56cb9a 100644 |
--- a/chrome/browser/resources/settings/controls/controlled_button.html |
+++ b/chrome/browser/resources/settings/controls/controlled_button.html |
@@ -12,6 +12,7 @@ |
:host { |
align-items: center; |
display: flex; |
+ --justify-margin: 18px; |
} |
:host([controlled_]) { |
@@ -21,11 +22,19 @@ |
} |
cr-policy-pref-indicator { |
- -webkit-margin-start: var(--checkbox-spacing); |
/* Enable pointer events for the indicator so :hover works. Disable |
* clicks/taps via onIndicatorTap_ so outer on-tap doesn't trigger. */ |
pointer-events: all; |
} |
+ |
+ :host(:not([end-justified])) cr-policy-pref-indicator { |
+ -webkit-margin-start: var(--justify-margin); |
+ } |
+ |
+ :host([end-justified]) cr-policy-pref-indicator { |
+ -webkit-margin-end: var(--justify-margin); |
+ order: -1; |
dschuyler
2017/01/07 02:12:20
I'm not familiar with order: -1 to be sure it's co
Dan Beam
2017/01/07 02:14:18
trust me, it's magical
|
+ } |
</style> |
<paper-button disabled="[[controlled_]]"> |