зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1582763 - [Protections Panel] Remove blue badge from shield and toggle when TP is disabled. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D46618 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ce56a99d89
Коммит
6310039b5f
|
@ -1730,14 +1730,6 @@ var gProtectionsHandler = {
|
|||
!currentlyEnabled
|
||||
);
|
||||
|
||||
// Show the blue dot indicator if the protection is disabled. We need this
|
||||
// in addition to the 'enabled' attribute of the TP switch section due to
|
||||
// the blue dot won't be shown in the case that TP switch to off from on.
|
||||
this._protectionsPopupTPSwitch.toggleAttribute(
|
||||
"showdotindicator",
|
||||
!currentlyEnabled
|
||||
);
|
||||
|
||||
// Give the button an accessible label for screen readers.
|
||||
if (currentlyEnabled) {
|
||||
this._protectionsPopupTPSwitch.setAttribute(
|
||||
|
|
|
@ -1074,25 +1074,6 @@ description#identity-popup-content-verifier,
|
|||
color: #f9f9fa;
|
||||
}
|
||||
|
||||
#protections-popup-tp-switch:not([enabled])[showdotindicator]::after {
|
||||
background: #00B3F4;
|
||||
border: 2px rgba(0,144,237,0.5) solid;
|
||||
content: " ";
|
||||
border-radius: 6px;
|
||||
position: absolute;
|
||||
margin: auto;
|
||||
top: 0;
|
||||
bottom: 12px;
|
||||
left: 21px;
|
||||
height: 6px;
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
#protections-popup-tp-switch:not([enabled])[showdotindicator]:-moz-locale-dir(rtl)::after {
|
||||
left: unset;
|
||||
right: 21px;
|
||||
}
|
||||
|
||||
.protections-popup-description {
|
||||
border-bottom: 1px solid var(--panel-separator-color);
|
||||
}
|
||||
|
|
|
@ -268,16 +268,6 @@
|
|||
-moz-context-properties: fill, fill-opacity;
|
||||
}
|
||||
|
||||
#tracking-protection-icon-box[hasException]::before {
|
||||
background: url(chrome://browser/skin/badge-blue.svg);
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 15px;
|
||||
right: 0;
|
||||
height: 14px;
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
#tracking-protection-icon-box[hasException]:-moz-locale-dir(rtl)::before {
|
||||
left: 0;
|
||||
right: unset;
|
||||
|
|
Загрузка…
Ссылка в новой задаче