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

Unified Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 1939373002: MD Settings: make the background color of the collapsed nav drawer white (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scoping + flex-shrink Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/settings_ui/settings_ui.js
diff --git a/chrome/browser/resources/settings/settings_ui/settings_ui.js b/chrome/browser/resources/settings/settings_ui/settings_ui.js
index 9e5a531d3d0e221e38653a0a11fe3a59d86361ad..ebd72d3c9291156d6ee95069da506804a7856775 100644
--- a/chrome/browser/resources/settings/settings_ui/settings_ui.js
+++ b/chrome/browser/resources/settings/settings_ui/settings_ui.js
@@ -27,6 +27,29 @@ Polymer({
},
},
+ listeners: {
+ 'iron-select': 'onIronSelect_',
+ 'paper-responsive-change': 'onPaperResponsiveChange_',
+ },
+
+ /**
+ * @param {!CustomEvent} e
+ * @private
+ */
+ onIronSelect_: function(e) {
+ if (Polymer.dom(e).path.indexOf(this.$.panel) >= 0)
+ this.classList.remove('narrowing');
+ },
+
+ /**
+ * @param {!CustomEvent} e
+ * @private
+ */
+ onPaperResponsiveChange_: function(e) {
+ if (Polymer.dom(e).rootTarget == this.$.panel)
+ this.classList.toggle('narrowing', e.detail.narrow);
+ },
+
/** @private */
directionDelegateChanged_: function() {
this.$.panel.rightDrawer = this.directionDelegate.isRtl();
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698