Bug 1497820 - Get rid of the 'compact' class for search textboxes. r=paolo
authorDão Gottwald <dao@mozilla.com>
Thu, 18 Oct 2018 10:05:27 +0000
changeset 490241 1f35618c6e3c52748c84e62a15854dbb7a575206
parent 490240 a0e2d7e922d83b15720c193f672312e639634a33
child 490242 695366afa355ad61c17dedd9498ac2feba7b0ecd
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerspaolo
bugs1497820
milestone64.0a1
Bug 1497820 - Get rid of the 'compact' class for search textboxes. r=paolo Differential Revision: https://phabricator.services.mozilla.com/D9078
toolkit/components/viewconfig/content/config.xul
toolkit/themes/osx/global/textbox.css
--- a/toolkit/components/viewconfig/content/config.xul
+++ b/toolkit/components/viewconfig/content/config.xul
@@ -65,17 +65,17 @@
         </hbox>
       </vbox>
     </vbox>
     <spacer flex="2"/>
   </vbox>
   <vbox flex="1">
     <hbox id="filterRow" align="center">
       <label data-l10n-id="config-search-prefs" control="textbox"/>
-      <textbox id="textbox" flex="1" type="search" class="compact"
+      <textbox id="textbox" flex="1" type="search"
                aria-controls="configTree"
                oncommand="FilterPrefs();"/>
     </hbox>
 
     <tree id="configTree" flex="1" seltype="single"
           onselect="updateCommands('select');"
           enableColumnDrag="true" context="configContext">
       <treecols>
--- a/toolkit/themes/osx/global/textbox.css
+++ b/toolkit/themes/osx/global/textbox.css
@@ -69,24 +69,15 @@ textbox[type="search"] {
 }
 
 .textbox-search-clear {
   list-style-image: url(chrome://global/skin/icons/searchfield-cancel.svg);
   -moz-image-region: rect(0, 14px, 14px, 0);
   margin-bottom: 1px;
 }
 
-textbox[type="search"].compact {
-  padding: 0;
-  font-size: 11px;
-}
-
-textbox[type="search"].compact > moz-input-box > .textbox-search-icons > .textbox-search-clear {
-  width: 11px;
-}
-
 .textbox-search-clear:not([disabled]) {
   cursor: default;
 }
  
 .textbox-search-icons:not([selectedIndex="1"]) {
   visibility: hidden;
 }