Bug 857461 - pinstripe: non-native focus rings are applied for links in chrome. r=Mano.
authorstefanh@inbox.com
Thu, 04 Jul 2013 18:46:01 +0200
changeset 149746 a9d6d86a8090de3367904ba1fa4696c3275ca3a3
parent 149745 08db0325dc30a24b76bf2bce827002f5d84f8c89
child 149747 6bc751e34867b78facdf9be40bb49cfafea04229
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMano
bugs857461
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 857461 - pinstripe: non-native focus rings are applied for links in chrome. r=Mano.
browser/themes/osx/preferences/preferences.css
toolkit/themes/osx/global/global.css
--- a/browser/themes/osx/preferences/preferences.css
+++ b/browser/themes/osx/preferences/preferences.css
@@ -1,15 +1,20 @@
 /*
 # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 # 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/.
 */
 
+%include ../../../../toolkit/themes/osx/global/shared.inc
+
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+@namespace html url("http://www.w3.org/1999/xhtml");
+
 .windowDialog {
   padding: 12px;
   font: -moz-dialog;
 }
 
 .paneSelector {
   list-style-image: url("chrome://browser/skin/preferences/Options.png");
 }
@@ -155,26 +160,30 @@ caption {
 #OCSPDialogPane {
   font: message-box !important;
 }
 
 /**
  * Privacy Pane
  */
 
-/* styles for the link elements copied from .text-link in global.css */
-.inline-link {
+html|a.inline-link {
   color: -moz-nativehyperlinktext;
   text-decoration: none;
 }
 
-.inline-link:hover {
+html|a.inline-link:hover {
   text-decoration: underline;
 }
 
+html|a.inline-link:-moz-focusring {
+  outline-width: 0;
+  box-shadow: @focusRingShadow@;
+}
+
 /**
  * Update Preferences
  */
 #autoInstallOptions {
   -moz-margin-start: 20px;
 }
 
 .updateControls {
--- a/toolkit/themes/osx/global/global.css
+++ b/toolkit/themes/osx/global/global.css
@@ -236,26 +236,25 @@ description {
 }
 
 .wizard-box {
   padding: 20px 44px 10px;
 }
 
 .text-link {
   color: -moz-nativehyperlinktext;
-  border: 1px solid transparent;
   cursor: pointer;
 }
 
 .text-link:hover {
   text-decoration: underline;
 }
   
 .text-link:-moz-focusring {
-  border: 1px dotted -moz-DialogText;
+  box-shadow: @focusRingShadow@;
 }
 
 .toolbar-focustarget {
   -moz-user-focus: ignore !important;
 }
 
 notification > button {
   margin: 0 3px;