Bug 481397 - Incorrect tab order of findbar buttons on Linux. r=enn

This commit is contained in:
Dão Gottwald 2009-03-11 16:10:52 +01:00
parent 8221d3c468
commit 350911cd4e
4 changed files with 38 additions and 38 deletions

View File

@ -221,26 +221,37 @@
class="find-field-container findbar-find-fast">
<xul:textbox class="findbar-textbox" anonid="findbar-textbox"/>
</xul:hbox>
<xul:hbox anonid="find-buttons-container" class="find-buttons-container">
<xul:toolbarbutton anonid="find-next"
class="findbar-find-next tabbable"
label="&next.label;"
accesskey="&next.accesskey;"
tooltiptext="&next.tooltip;"
oncommand="onFindAgainCommand(false);"
disabled="true"
chromedir="&locale.dir;"
xbl:inherits="accesskey=findnextaccesskey"/>
<xul:toolbarbutton anonid="find-previous"
class="findbar-find-previous tabbable"
label="&previous.label;"
accesskey="&previous.accesskey;"
tooltiptext="&previous.tooltip;"
oncommand="onFindAgainCommand(true);"
disabled="true"
chromedir="&locale.dir;"
xbl:inherits="accesskey=findpreviousaccesskey"/>
</xul:hbox>
#ifdef MOZ_WIDGET_GTK2
<xul:toolbarbutton anonid="find-previous"
class="findbar-find-previous tabbable"
label="&previous.label;"
accesskey="&previous.accesskey;"
tooltiptext="&previous.tooltip;"
oncommand="onFindAgainCommand(true);"
disabled="true"
chromedir="&locale.dir;"
xbl:inherits="accesskey=findpreviousaccesskey"/>
#endif
<xul:toolbarbutton anonid="find-next"
class="findbar-find-next tabbable"
label="&next.label;"
accesskey="&next.accesskey;"
tooltiptext="&next.tooltip;"
oncommand="onFindAgainCommand(false);"
disabled="true"
chromedir="&locale.dir;"
xbl:inherits="accesskey=findnextaccesskey"/>
#ifndef MOZ_WIDGET_GTK2
<xul:toolbarbutton anonid="find-previous"
class="findbar-find-previous tabbable"
label="&previous.label;"
accesskey="&previous.accesskey;"
tooltiptext="&previous.tooltip;"
oncommand="onFindAgainCommand(true);"
disabled="true"
chromedir="&locale.dir;"
xbl:inherits="accesskey=findpreviousaccesskey"/>
#endif
<xul:toolbarbutton anonid="highlight"
class="findbar-highlight tabbable"
label="&highlight.label;"

View File

@ -5,18 +5,12 @@
}
findbar {
-moz-appearance: none !important;
border-top: 2px solid;
-moz-border-top-colors: ThreeDShadow ThreeDHighlight !important;
border-bottom: 1px solid;
-moz-border-bottom-colors: transparent;
-moz-border-top-colors: ThreeDShadow ThreeDHighlight;
padding-bottom: 1px;
min-width: 1px;
}
.find-buttons-container {
-moz-box-direction: reverse;
}
/* find-next button */
.findbar-find-next {

View File

@ -45,19 +45,16 @@ findbar {
padding: 0 3px;
}
.findbar-container > toolbarbutton > .toolbarbutton-text,
.findbar-container > hbox > toolbarbutton > .toolbarbutton-text {
.findbar-container > toolbarbutton > .toolbarbutton-text {
margin: 1px 6px !important;
}
.findbar-container > toolbarbutton[disabled],
.findbar-container > hbox > toolbarbutton[disabled] {
.findbar-container > toolbarbutton[disabled] {
border-color: #8F8F8F !important;
color: graytext;
}
.findbar-container > toolbarbutton:not([disabled]):hover:active,
.findbar-container > hbox > toolbarbutton:not([disabled]):hover:active {
.findbar-container > toolbarbutton:not([disabled]):hover:active {
background-image: url("chrome://global/skin/icons/white-gray-gradient-active.gif");
}

View File

@ -23,11 +23,9 @@
}
findbar {
-moz-appearance: none !important;
border-top: 2px solid;
-moz-border-top-colors: ThreeDShadow ThreeDHighlight !important;
border-bottom: 1px solid;
-moz-border-bottom-colors: transparent;
-moz-border-top-colors: ThreeDShadow ThreeDHighlight;
padding-bottom: 1px;
min-width: 1px;
}