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

Unified Diff: chrome/browser/resources/settings/controls/controlled_button.html

Issue 2615093003: MD Settings: add <controlled-button>#endJustified to flip controlled by indicator position (Closed)
Patch Set: merge Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/controlled_button.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 650e3a42a14f29afc6f0bf494de36a2b9b31ad4d..d9df92a08e44fde4c755bc3dd8cb381125507e01 100644
--- a/chrome/browser/resources/settings/controls/controlled_button.html
+++ b/chrome/browser/resources/settings/controls/controlled_button.html
@@ -14,6 +14,7 @@
:host {
align-items: center;
display: flex;
+ --justify-margin: 18px;
}
:host([controlled_]) {
@@ -23,11 +24,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;
+ }
</style>
<paper-button disabled="[[controlled_]]">
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/controlled_button.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698