Bug 1432630 - Move close-icon rounded corners into SVG. r?dao draft
authorIan Moody <moz-ian@perix.co.uk>
Tue, 30 Jan 2018 14:33:02 +0000
changeset 748906 e046eeee3074b905c3d6c066526ce9d864b2579a
parent 748899 fd995039d89708923b5673ecebc652967d40bd4e
push id97266
push usermoz-ian@perix.co.uk
push dateTue, 30 Jan 2018 17:14:13 +0000
reviewersdao
bugs1432630
milestone60.0a1
Bug 1432630 - Move close-icon rounded corners into SVG. r?dao MozReview-Commit-ID: CP3ZDTUKaBM
toolkit/themes/shared/close-icon.inc.css
toolkit/themes/shared/icons/close.svg
--- a/toolkit/themes/shared/close-icon.inc.css
+++ b/toolkit/themes/shared/close-icon.inc.css
@@ -19,10 +19,9 @@
   fill-opacity: 0.2;
 }
 
 .close-icon > .button-icon,
 .close-icon > .button-box > .button-icon,
 .close-icon > .toolbarbutton-icon {
   width: 20px;
   height: 20px;
-  border-radius: 2px;
 }
--- 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"/>
+  <rect fill="context-fill" fill-opacity="context-fill-opacity" width="20" height="20" rx="2" ry="2"/>
   <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>