Refactor LegalParagraph as LinkParagraph & replace usage of cta_paragraph in shopping sidebar onboarding
Categories
(Firefox :: Messaging System, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox119 | --- | verified |
People
(Reporter: emcminn, Assigned: nsauermann)
References
(Blocks 1 open bug)
Details
(Whiteboard: [omc])
Attachments
(1 file)
As discussed in https://phabricator.services.mozilla.com/D186579; we should repurpose the LegalParagraph component to cover the use of cta_paragraph in the shopping onboarding message - this can be worked on once https://phabricator.services.mozilla.com/D186499 lands.
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 1•1 year ago
|
||
With Bug 1847641 fix in Nightly, we can remove cta_paragraph and use array of text to display second paragraph text something like below in JSON:
above_button_content: [ { type: "text", text: { string_id: "shopping-onboarding-body", }, link_keys: ["learn_more_link"], }, { type: "image", url: "chrome://browser/content/shopping/assets/temp-fakespot-rating.svg", height: "auto", }, { type: "text", text: { string_id: "shopping-onboarding-opt-in-privacy-policy-and-terms-of-use", }, link_keys: ["privacy_policy", "terms_of_use"], }, ], learn_more_link: { action: { type: "OPEN_URL", data: { args: "https://www.support.mozilla.org", where: "tab", }, }, }, privacy_policy: { action: { type: "OPEN_URL", data: { args: "https://www.fakespot.com/privacy-policy", where: "tab", }, }, }, terms_of_use: { action: { type: "OPEN_URL", data: { args: "https://www.fakespot.com/terms", where: "tab", }, }, },
There will be small code change to make LegalParagraph pick style from JSON config that is show text as 'regular' or 'legal' with regular text styled with default
font-size: 0.8em; color: #5B5B66;
and .welcome-text
margins adjusted as per shopping figma. This should resolve Bug 1850924
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Comment 4•1 year ago
|
||
bugherder |
Comment 6•1 year ago
|
||
Verified fixed using Firefox Nightly 119.0a1 (20230925093027) on Windows 10, MacOS 11 and Ubuntu 20.04.
Description
•