Bug 1790232 - Use subviewbutton for the Protections popup buttons and cleanup some CSS r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D157045
This commit is contained in:
Itiel
2022-10-25 19:02:45 +00:00
parent d57ff6f042
commit 93140a5b5c
4 changed files with 157 additions and 307 deletions

View File

@@ -161,6 +161,7 @@ class ProtectionCategory {
return false;
}
this.categoryItem.classList.toggle("blocked", this.enabled);
this.categoryItem.classList.toggle("subviewbutton-nav", this.enabled);
return true;
}
@@ -1631,6 +1632,10 @@ var gProtectionsHandler = {
"notFound",
!blocker.isDetected(event)
);
blocker.categoryItem.classList.toggle(
"subviewbutton-nav",
blocker.isDetected(event)
);
}
// And the popup attributes: