Bug 1432800 - Mirror -focusring and |*button.primary:focus states. r=dao

MozReview-Commit-ID: L50ckv3NBZG

--HG--
extra : rebase_source : ddccb883dc11fa723f5816dc458a7d88fc53fcc9
This commit is contained in:
Harry Twyford 2018-05-17 16:58:30 -04:00
parent 9e4df63c72
commit 73925a85fe
3 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,7 @@ xul|tab[visuallyselected] {
border-bottom-right-radius: 0;
}
*|button.primary:focus,
xul|button:-moz-focusring {
outline: 1px dotted;
outline-offset: -2px;

View File

@ -66,6 +66,7 @@ xul|*.text-link:-moz-focusring {
xul|button:-moz-focusring,
xul|menulist:-moz-focusring,
xul|checkbox:-moz-focusring > .checkbox-check,
*|button.primary:focus,
html|input[type="checkbox"]:-moz-focusring + html|label:before,
xul|radio[focused="true"] > .radio-check,
xul|tab:-moz-focusring > .tab-middle > .tab-text {

View File

@ -46,6 +46,11 @@ html|input[type="checkbox"]:-moz-focusring + html|label:before {
outline: 1px dotted;
}
*|button.primary:focus {
outline: 1px dotted;
outline-offset: -3px;
}
/* Use a 2px border so that selected row highlight is still visible behind
an existing high-contrast border that uses the background color */
@media (-moz-windows-default-theme: 0) {