diff --git a/browser/base/content/test/webextensions/browser_extension_sideloading.js b/browser/base/content/test/webextensions/browser_extension_sideloading.js index bac26193f6d1..a482c76beccf 100644 --- a/browser/base/content/test/webextensions/browser_extension_sideloading.js +++ b/browser/base/content/test/webextensions/browser_extension_sideloading.js @@ -53,7 +53,7 @@ function assertDisabledSideloadedAddonElement(managerWindow, addonElement) { const enableBtn = addonElement.querySelector('[action="toggle-disabled"]'); is( doc.l10n.getAttributes(enableBtn).id, - "enable-addon-button-label", + "enable-addon-button", "The button has the enable label" ); } diff --git a/browser/components/enterprisepolicies/tests/browser/browser_policy_extensions.js b/browser/components/enterprisepolicies/tests/browser/browser_policy_extensions.js index 2c4f6ae7adaa..45f6bfbd993d 100644 --- a/browser/components/enterprisepolicies/tests/browser/browser_policy_extensions.js +++ b/browser/components/enterprisepolicies/tests/browser/browser_policy_extensions.js @@ -12,7 +12,9 @@ async function isExtensionLocked(win, addonID) { await win.htmlBrowserLoaded; return doc.querySelector(`addon-card[addon-id="${addonID}"]`); }, `Get addon-card for "${addonID}"`); - let disableBtn = addonCard.querySelector('[action="toggle-disabled"]'); + let disableBtn = addonCard.querySelector( + 'panel-item[action="toggle-disabled"]' + ); let removeBtn = addonCard.querySelector('panel-item[action="remove"]'); ok(removeBtn.disabled, "Remove button should be disabled"); ok(disableBtn.hidden, "Disable button should be hidden"); diff --git a/python/l10n/fluent_migrations/bug_1570792_aboutaddons_extension_toggle.py b/python/l10n/fluent_migrations/bug_1570792_aboutaddons_extension_toggle.py deleted file mode 100644 index fd42ac24ba4a..000000000000 --- a/python/l10n/fluent_migrations/bug_1570792_aboutaddons_extension_toggle.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf8 - -# Any copyright is dedicated to the Public Domain. -# http://creativecommons.org/publicdomain/zero/1.0/ - -from __future__ import absolute_import -import fluent.syntax.ast as FTL -from fluent.migrate.helpers import transforms_from -from fluent.migrate import COPY_PATTERN - -TARGET_FILE = "toolkit/toolkit/about/aboutAddons.ftl" -SOURCE_FILE = TARGET_FILE - - -def migrate(ctx): - """Bug 1570792 - Add a toggle to extension cards, part {index}""" - - ctx.add_transforms( - TARGET_FILE, - SOURCE_FILE, - transforms_from( -""" -disable-addon-button-label = - .aria-label = {COPY_PATTERN(from_path, "disable-addon-button")} -enable-addon-button-label = - .aria-label = {COPY_PATTERN(from_path, "enable-addon-button")} -""", - from_path=SOURCE_FILE), - ) diff --git a/toolkit/locales/en-US/toolkit/about/aboutAddons.ftl b/toolkit/locales/en-US/toolkit/about/aboutAddons.ftl index 74821f16b939..7e72f6e6b70c 100644 --- a/toolkit/locales/en-US/toolkit/about/aboutAddons.ftl +++ b/toolkit/locales/en-US/toolkit/about/aboutAddons.ftl @@ -367,10 +367,6 @@ remove-addon-button = Remove remove-addon-disabled-button = Can’t Be Removed Why? disable-addon-button = Disable enable-addon-button = Enable -disable-addon-button-label = - .aria-label = Disable -enable-addon-button-label = - .aria-label = Enable preferences-addon-button = { PLATFORM() -> [windows] Options diff --git a/toolkit/mozapps/extensions/content/aboutaddons.css b/toolkit/mozapps/extensions/content/aboutaddons.css index ea47722b2cf2..df874edec2e2 100644 --- a/toolkit/mozapps/extensions/content/aboutaddons.css +++ b/toolkit/mozapps/extensions/content/aboutaddons.css @@ -176,7 +176,6 @@ addon-card[expanded] .addon-card-message { /* Adjust height so that the image preserves the aspect ratio from AMO. * For details, see https://bugzilla.mozilla.org/show_bug.cgi?id=1546123 */ height: calc(var(--section-width) * 92 / 680); - object-fit: cover; } .card-heading-icon { @@ -195,6 +194,10 @@ addon-card[expanded] .addon-card-message { flex-direction: column; } +.card-actions { + flex-shrink: 0; +} + .addon-name-container { /* Subtract the top line-height so the text and icon align at the top. */ margin-top: -3px; @@ -240,15 +243,6 @@ addon-card[expanded] .addon-card-message { -moz-context-properties: fill; } -.theme-enable-button { - min-width: auto; - height: auto; - font-size: 13px; - min-height: auto; - height: 24px; - margin: 0; -} - .addon-description { font-size: 14px; line-height: 20px; @@ -281,6 +275,12 @@ addon-card:not([expanded]) .addon-description { height: 32px; } +.more-options-menu { + /* Add some negative margin to account for the button's padding */ + margin-top: -10px; + margin-inline-end: -8px; +} + /* Recommended add-ons on list views */ .recommended-heading { margin-top: 48px; @@ -437,7 +437,6 @@ addon-details { width: 24px; height: 24px; margin: 0; - margin-inline-start: 8px; -moz-context-properties: fill; fill: currentColor; background-image: url("chrome://global/skin/icons/more.svg"); diff --git a/toolkit/mozapps/extensions/content/aboutaddons.html b/toolkit/mozapps/extensions/content/aboutaddons.html index 873efb67d510..9a8b4dcfc3db 100644 --- a/toolkit/mozapps/extensions/content/aboutaddons.html +++ b/toolkit/mozapps/extensions/content/aboutaddons.html @@ -14,7 +14,6 @@ - @@ -78,6 +77,7 @@