зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1914057 - update strings for review checker recommendations and settings, plus other minor UX changes. r=fluent-reviewers,shopping-reviewers,bolsson,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219791
This commit is contained in:
Родитель
2bf85183a7
Коммит
18069fb434
|
@ -57,3 +57,9 @@
|
|||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
#sponsored-label {
|
||||
font-size: var(--font-size-small);
|
||||
margin-block-start: 8px;
|
||||
color: var(--text-color-deemphasized);
|
||||
}
|
||||
|
|
|
@ -142,7 +142,7 @@ class RecommendedAd extends MozLitElement {
|
|||
</div>
|
||||
</a>
|
||||
</shopping-card>
|
||||
<p data-l10n-id="ad-by-fakespot"></p>
|
||||
<p id="sponsored-label" data-l10n-id="shopping-sponsored-label"></p>
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,11 +26,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
#powered-by-fakespot {
|
||||
font-size: 12px;
|
||||
color: var(--text-color-deemphasized);
|
||||
}
|
||||
|
||||
#shopping-settings-toggles-section {
|
||||
display: grid;
|
||||
row-gap: 8px;
|
||||
|
@ -62,7 +57,6 @@
|
|||
}
|
||||
|
||||
#shopping-settings-opt-out-section {
|
||||
justify-content: flex-start;
|
||||
row-gap: var(--shopping-settings-between-label-and-control-option-gap);
|
||||
|
||||
#shopping-settings-opt-out-button {
|
||||
|
@ -72,3 +66,8 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#powered-by-fakespot {
|
||||
font-size: var(--font-size-small);
|
||||
color: var(--text-color-deemphasized);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@ class ShoppingSettings extends MozLitElement {
|
|||
autoOpenToggleEl: "#shopping-settings-auto-open-toggle",
|
||||
autoOpenToggleDescriptionEl: "#shopping-auto-open-description",
|
||||
dividerEl: ".divider",
|
||||
sidebarEnabledStateEl: "#shopping-settings-sidebar-enabled-state",
|
||||
optOutButtonEl: "#shopping-settings-opt-out-button",
|
||||
shoppingCardEl: "shopping-card",
|
||||
adsLearnMoreLinkEl: "#shopping-ads-learn-more-link",
|
||||
|
@ -159,7 +158,7 @@ class ShoppingSettings extends MozLitElement {
|
|||
<shopping-card
|
||||
data-l10n-id="shopping-settings-label"
|
||||
data-l10n-attrs="label"
|
||||
type=${!this.autoOpenEnabled ? "accordion" : ""}
|
||||
type="accordion"
|
||||
>
|
||||
<div
|
||||
id="shopping-settings-wrapper"
|
||||
|
@ -169,20 +168,14 @@ class ShoppingSettings extends MozLitElement {
|
|||
slot="content"
|
||||
>
|
||||
<section id="shopping-settings-toggles-section">
|
||||
${adsToggleMarkup} ${autoOpenToggleMarkup}
|
||||
${autoOpenToggleMarkup} ${adsToggleMarkup}
|
||||
</section>
|
||||
${this.autoOpenEnabled
|
||||
? html`<span class="divider" role="separator"></span>`
|
||||
: null}
|
||||
<section id="shopping-settings-opt-out-section">
|
||||
${this.autoOpenEnabled
|
||||
? html`<span
|
||||
id="shopping-settings-sidebar-enabled-state"
|
||||
data-l10n-id="shopping-settings-sidebar-enabled-state"
|
||||
></span>`
|
||||
: null}
|
||||
<button
|
||||
class="shopping-button"
|
||||
class="small-button shopping-button"
|
||||
id="shopping-settings-opt-out-button"
|
||||
data-l10n-id="shopping-settings-opt-out-button"
|
||||
@click=${this.onDisableShopping}
|
||||
|
@ -192,7 +185,6 @@ class ShoppingSettings extends MozLitElement {
|
|||
</shopping-card>
|
||||
<p
|
||||
id="powered-by-fakespot"
|
||||
class="deemphasized"
|
||||
data-l10n-id="powered-by-fakespot"
|
||||
@click=${this.fakespotLinkClicked}
|
||||
>
|
||||
|
|
|
@ -420,11 +420,6 @@ add_task(
|
|||
),
|
||||
"Settings card should have a special classname with autoOpen pref enabled"
|
||||
);
|
||||
is(
|
||||
shoppingSettings.shoppingCardEl?.type,
|
||||
"",
|
||||
"shopping-card type should be default"
|
||||
);
|
||||
|
||||
ok(
|
||||
shoppingSettings.recommendationsToggleEl,
|
||||
|
@ -441,10 +436,6 @@ add_task(
|
|||
"There should be a description for the auto-open toggle"
|
||||
);
|
||||
ok(shoppingSettings.dividerEl, "There should be a divider");
|
||||
ok(
|
||||
shoppingSettings.sidebarEnabledStateEl,
|
||||
"There should be a message about the sidebar active state"
|
||||
);
|
||||
|
||||
ok(
|
||||
shoppingSettings.optOutButtonEl,
|
||||
|
@ -506,11 +497,6 @@ add_task(
|
|||
),
|
||||
"Settings card should have a special classname with autoOpen pref enabled"
|
||||
);
|
||||
is(
|
||||
shoppingSettings.shoppingCardEl?.type,
|
||||
"",
|
||||
"shopping-card type should be default"
|
||||
);
|
||||
|
||||
ok(
|
||||
!shoppingSettings.recommendationsToggleEl,
|
||||
|
@ -527,10 +513,6 @@ add_task(
|
|||
"There should be a description for the auto-open toggle"
|
||||
);
|
||||
ok(shoppingSettings.dividerEl, "There should be a divider");
|
||||
ok(
|
||||
shoppingSettings.sidebarEnabledStateEl,
|
||||
"There should be a message about the sidebar active state"
|
||||
);
|
||||
|
||||
ok(
|
||||
shoppingSettings.optOutButtonEl,
|
||||
|
|
|
@ -88,6 +88,7 @@ const Template = ({
|
|||
adsEnabledByUser,
|
||||
recommendationData,
|
||||
analysisProgress,
|
||||
autoOpenEnabled,
|
||||
}) => html`
|
||||
<style>
|
||||
main {
|
||||
|
@ -114,6 +115,7 @@ const Template = ({
|
|||
?adsEnabledByUser=${adsEnabledByUser}
|
||||
.recommendationData=${recommendationData}
|
||||
analysisProgress=${analysisProgress}
|
||||
autoOpenEnabled=${autoOpenEnabled}
|
||||
>
|
||||
</shopping-container>
|
||||
</main>
|
||||
|
|
|
@ -123,8 +123,6 @@ shopping-settings-auto-open-description-three-sites = When you view products on
|
|||
# $currentSite (String) - The current shopping page name
|
||||
shopping-settings-auto-open-description-single-site = When you view products on { $currentSite }
|
||||
|
||||
shopping-settings-sidebar-enabled-state = Review Checker is <strong>On</strong>
|
||||
|
||||
## Strings for the adjusted rating component
|
||||
|
||||
# "Adjusted rating" means a star rating that has been adjusted to include only
|
||||
|
@ -187,7 +185,7 @@ shopping-unanalyzed-product-analyze-button = Check review quality
|
|||
|
||||
more-to-consider-ad-label =
|
||||
.label = More to consider
|
||||
ad-by-fakespot = Ad by { -fakespot-brand-name }
|
||||
shopping-sponsored-label = Sponsored
|
||||
|
||||
## Shopping survey strings.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче