Bug 1411747 - Lower the opacity on text and chevrons of disabled items to correspond with their lighter icon. r?johannh draft
authorJared Wein <jwein@mozilla.com>
Thu, 26 Oct 2017 14:03:38 -0400
changeset 686979 2883c1152cfb7c4fc4e5c1f6f2a39b1579d60829
parent 686801 0d1e55d87931fe70ec1d007e886bcd58015ff770
child 687033 c6196fc7b19b48b511f43c1582787656f355effe
push id86368
push userbmo:jaws@mozilla.com
push dateThu, 26 Oct 2017 18:05:20 +0000
reviewersjohannh
bugs1411747
milestone58.0a1
Bug 1411747 - Lower the opacity on text and chevrons of disabled items to correspond with their lighter icon. r?johannh MozReview-Commit-ID: 2QaD8wG1A6Y
browser/themes/shared/customizableui/panelUI.inc.css
browser/themes/shared/toolbarbuttons.inc.css
--- a/browser/themes/shared/customizableui/panelUI.inc.css
+++ b/browser/themes/shared/customizableui/panelUI.inc.css
@@ -1379,16 +1379,20 @@ panelview .toolbarbutton-1,
 .PanelUI-subView .subviewbutton-nav::after {
   -moz-context-properties: fill;
   content: url(chrome://browser/skin/back-12.svg);
   fill: GrayText;
   float: right;
   transform: translateY(1px);
 }
 
+#main-window:not([customizing]) .subviewbutton-nav[disabled=true]::after {
+  opacity: 0.4;
+}
+
 .PanelUI-subView .subviewbutton-nav:-moz-locale-dir(ltr)::after {
   transform: scaleX(-1) translateY(1px);
 }
 
 .subviewbutton[shortcut]::after,
 .subviewbutton[shortcut]::after,
 .PanelUI-subView .subviewbutton-nav::after {
   margin-inline-start: 10px;
--- a/browser/themes/shared/toolbarbuttons.inc.css
+++ b/browser/themes/shared/toolbarbuttons.inc.css
@@ -53,16 +53,17 @@ toolbar[brighttext] {
 /* ::::: primary toolbar buttons ::::: */
 
 .tabbrowser-arrowscrollbox > .scrollbutton-up[disabled=true],
 .tabbrowser-arrowscrollbox > .scrollbutton-down[disabled=true],
 /* specialcase the overflow and the hamburger button so they show up disabled in customize mode. */
 #nav-bar-overflow-button[disabled=true] > .toolbarbutton-icon,
 #PanelUI-menu-button[disabled=true] > .toolbarbutton-badge-stack > .toolbarbutton-icon,
 #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-icon,
+#main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-text,
 #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-badge-stack > .toolbarbutton-icon {
   opacity: 0.4;
 }
 
 .toolbarbutton-1 > .toolbarbutton-icon {
   margin-inline-end: 0;
 }