diff --git a/browser/themes/shared/browser-shared.css b/browser/themes/shared/browser-shared.css
index 2d3dc1f9e3fa..c6e3367c0046 100644
--- a/browser/themes/shared/browser-shared.css
+++ b/browser/themes/shared/browser-shared.css
@@ -504,7 +504,7 @@ menupopup::part(drop-indicator) {
background-color: transparent;
flex-direction: row-reverse;
/* Override proton-doorhanger default styles that increase the size of the button */
- margin: 0;
+ margin: 4px;
}
#contextual-feature-recommendation-notification[data-notification-bucket="CFR_MILESTONE_MESSAGE"] .popup-notification-primary-button {
@@ -512,7 +512,6 @@ menupopup::part(drop-indicator) {
color: white;
border: none;
border-radius: 2px;
- margin: 4px;
padding: 3px 12px;
flex: 1;
}
diff --git a/toolkit/content/widgets/popupnotification.js b/toolkit/content/widgets/popupnotification.js
index e7ea12a78fc1..a54738c24e14 100644
--- a/toolkit/content/widgets/popupnotification.js
+++ b/toolkit/content/widgets/popupnotification.js
@@ -95,14 +95,14 @@
-
+
+
`;
}
@@ -115,6 +115,8 @@
MozXULElement.insertFTLIfNeeded("toolkit/global/popupnotification.ftl");
this.appendChild(this.constructor.fragment);
+ window.ensureCustomElements("moz-button-group");
+
this.button = this.querySelector(".popup-notification-primary-button");
if (
this.hasAttribute("buttonlabel") ||
diff --git a/toolkit/themes/shared/popupnotification.css b/toolkit/themes/shared/popupnotification.css
index 319bf966c92f..682ca77f47ab 100644
--- a/toolkit/themes/shared/popupnotification.css
+++ b/toolkit/themes/shared/popupnotification.css
@@ -72,14 +72,6 @@ popupnotificationcontent {
display: none;
}
-@media (-moz-platform: windows) {
- /* Swap the primary and secondary action, because Windows
- * platform conventions put the primary action on the left. */
- .panel-footer > .popup-notification-primary-button:not([default]) {
- order: -1;
- }
-}
-
.popup-notification-secondary-button:not([dropmarkerhidden="true"]) {
border-start-end-radius: 0;
border-end-end-radius: 0;