Skip to content

Commit db43a5c

Browse files
committed
Bug 1819372 - Part 2: Use moz-button-group in Cookie Banner Reduction panel r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D173892
1 parent 7b5861c commit db43a5c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

browser/base/content/browser-siteProtections.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,8 @@ var gProtectionsHandler = {
17461746

17471747
onPopupShown(event) {
17481748
if (event.target == this._protectionsPopup) {
1749+
window.ensureCustomElements("moz-button-group");
1750+
17491751
PopupNotifications.suppressWhileOpen(this._protectionsPopup);
17501752

17511753
window.addEventListener("focus", this, true);

browser/components/controlcenter/content/protectionsPanel.inc.xhtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
<description id="cookieBannerView-disable-site-warning" data-l10n-id="protections-panel-cookie-banner-view-cookie-clear-warning"></description>
410410
<description id="cookieBannerView-enable-site-description" data-l10n-id="protections-panel-cookie-banner-view-turn-on-description"></description>
411411
</vbox>
412-
<hbox class="panel-footer protections-popup-cookieBannerView-footer">
412+
<html:moz-button-group class="panel-footer protections-popup-cookieBannerView-footer">
413413
<button id="protections-popup-cookieBannerView-cancel"
414414
data-l10n-id="protections-panel-cookie-banner-view-cancel"
415415
oncommand="gProtectionsHandler._protectionsPopupMultiView.goBack();"
@@ -424,7 +424,7 @@
424424
oncommand="gProtectionsHandler.onCookieBannerToggleCommand()"
425425
default="true"
426426
class="subviewbutton panel-subview-footer-button" />
427-
</hbox>
427+
</html:moz-button-group>
428428
</panelview>
429429
</panelmultiview>
430430
</panel>

toolkit/themes/shared/global-shared.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ button.text-link .button-text {
247247
@media (-moz-platform: windows) {
248248
/* Swap the primary and secondary action, because Windows
249249
* platform conventions put the primary action on the left. */
250-
.panel-footer > button[default] {
250+
.panel-footer:not(moz-button-group) > button[default] {
251251
order: -1;
252252
}
253253
}

0 commit comments

Comments
 (0)