Bug 1387609 - Use --toolbarbutton-icon-fill-opacity for the tab close button. r?nhnt11 draft
authorDão Gottwald <dao@mozilla.com>
Thu, 21 Sep 2017 15:16:05 +0200
changeset 668288 b631a880081d5d38d01baf07b32e03454fba230f
parent 668025 47f7b6c64265bc7bdd22eef7ab71abc97cf3f8bf
child 732660 0f19979cbaa5f1b60bc2bca244775369ef118f86
push id81001
push userdgottwald@mozilla.com
push dateThu, 21 Sep 2017 13:16:34 +0000
reviewersnhnt11
bugs1387609
milestone57.0a1
Bug 1387609 - Use --toolbarbutton-icon-fill-opacity for the tab close button. r?nhnt11 MozReview-Commit-ID: GGyh4KkPZYp
browser/themes/shared/tabs.inc.css
toolkit/themes/shared/icons/close.svg
--- a/browser/themes/shared/tabs.inc.css
+++ b/browser/themes/shared/tabs.inc.css
@@ -300,16 +300,18 @@ tabbrowser {
 .tab-label {
   margin-inline-end: 0;
   margin-inline-start: 0;
 }
 
 .tab-close-button {
   margin-inline-end: -2px;
   padding: 0;
+  -moz-context-properties: fill, fill-opacity, stroke-opacity;
+  stroke-opacity: var(--toolbarbutton-icon-fill-opacity);
 }
 
 :root[uidensity=touch] .tab-close-button {
   margin-inline-end: -@horizontalTabPadding@;
   padding: 10px calc(@horizontalTabPadding@ - 2px);
 }
 
 .tab-icon-sound {
--- a/toolkit/themes/shared/icons/close.svg
+++ b/toolkit/themes/shared/icons/close.svg
@@ -1,7 +1,7 @@
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
   <path fill="context-fill" fill-opacity="context-fill-opacity" d="M0 0h20v20H0z"/>
-  <path fill="context-fill" d="M11.06 10l3.47-3.47a.75.75 0 0 0-1.06-1.06L10 8.94 6.53 5.47a.75.75 0 1 0-1.06 1.06L8.94 10l-3.47 3.47a.75.75 0 1 0 1.06 1.06L10 11.06l3.47 3.47a.75.75 0 0 0 1.06-1.06z"/>
+  <path fill="context-fill" fill-opacity="context-stroke-opacity" d="M11.06 10l3.47-3.47a.75.75 0 0 0-1.06-1.06L10 8.94 6.53 5.47a.75.75 0 1 0-1.06 1.06L8.94 10l-3.47 3.47a.75.75 0 1 0 1.06 1.06L10 11.06l3.47 3.47a.75.75 0 0 0 1.06-1.06z"/>
 </svg>