Closed Bug 1687827 Opened 3 years ago Closed 3 years ago

Update pocket and highlights card box shadow and border radius if newNewtabExperience is enabled

Categories

(Firefox :: New Tab Page, task, P1)

task

Tracking

()

VERIFIED FIXED
87 Branch
Tracking Status
firefox86 --- verified
firefox87 --- verified

People

(Reporter: prathiksha, Assigned: prathiksha)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Pushed by prathikshaprasadsuman@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/1139f807e404
Update pocket and highlights card box shadow and border radius if newNewtabExperience is enabled. r=ewright
Pushed by prathikshaprasadsuman@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/a9d27a32ec85
Update pocket and highlights card box shadow and border radius if newNewtabExperience is enabled. r=ewright
Flags: needinfo?(prathikshaprasadsuman)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

Comment on attachment 9198326 [details]
Bug 1687827 - Update pocket and highlights card box shadow and border radius if newNewtabExperience is enabled.

Beta/Release Uplift Approval Request

  • User impact if declined: Some small styles like the border-radius and box-shadow will not be updated on the newtab page for an experiment we plan to run in 86.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: 1. Set browser.newtabpage.activity-stream.newNewtabExperience.enabled pref to true.
  1. Verify that the border radius of Pocket and Highlights cards is 8px.

  2. Verify that new box-shadow on focus is added to Pocket and Highlights cards as per the spec.

  3. Verify that a new box shadow is added to Pocket and Highlights cards as shown in the spec.

  4. Set browser.newtabpage.activity-stream.newNewtabExperience.enabled pref to false and verify that (2), (3) and (4) are not effective.

spec: https://www.figma.com/file/hGOaTi5ufs2Ese6agbUN4G/New-New-Tab

  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small style changes behind a pref (will only affect experiment users).
  • String changes made/needed: None
Attachment #9198326 - Flags: approval-mozilla-beta?
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

I have verified the following based on a Slack conversation with @Prathiksha and based on the steps provided in comment 6 using Firefox Nightly 87.0a1 (Build ID: 20210201213620) on Windows 10 x64, macOS 10.15.6, and Ubuntu Linux 20.04 x64:

  • With the browser.newtabpage.activity-stream.newNewtabExperience.enabled pref set to true for the Pocket cards:
    • The box-radius is 8px.
    • The box-shadow has the "0 3px 8px var(--newtab-card-first-shadow), 0 0 2px var(--newtab-card-second-shadow)" value which is expected as per figma.
  • With the browser.newtabpage.activity-stream.newNewtabExperience.enabled pref set to true for the "Recent activity" cards:
    • The box-radius is 8px.
    • The box-shadow has the "0 3px 8px var(--newtab-card-first-shadow), 0 0 2px var(--newtab-card-second-shadow)" value which is expected as per figma.
  • With the browser.newtabpage.activity-stream.newNewtabExperience.enabled pref set to false for the Pocket cards:
    • The box-radius is 4px.
    • The box-shadow has the "0 1px 4px 0 rgba(12, 12, 13, 0.1)" value.
  • With the browser.newtabpage.activity-stream.newNewtabExperience.enabled pref set to false for the "Highlights" cards:
    • The box-radius is 3px.
    • The box-shadow has the "var(--newtab-card-shadow)" value.
Status: RESOLVED → VERIFIED
Flags: qe-verify+

Comment on attachment 9198326 [details]
Bug 1687827 - Update pocket and highlights card box shadow and border radius if newNewtabExperience is enabled.

Approved for 86 beta 5, thanks.

Attachment #9198326 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I have verified the following based on the steps provided in comment 6 using Firefox Beta 86.0b5 (Build ID: 20210202185823) on Windows 10 x64, macOS 10.15.6, and Ubuntu Linux 20.04 x64:

  • With the browser.newtabpage.activity-stream.newNewtabExperience.enabled pref set to true for the Pocket cards:
    • The box-radius is 8px.
    • The box-shadow has the "0 3px 8px var(--newtab-card-first-shadow), 0 0 2px var(--newtab-card-second-shadow)" value which is expected as per figma.
  • With the browser.newtabpage.activity-stream.newNewtabExperience.enabled pref set to true for the "Recent activity" cards:
    • The box-radius is 8px.
    • The box-shadow has the "0 3px 8px var(--newtab-card-first-shadow), 0 0 2px var(--newtab-card-second-shadow)" value which is expected as per figma.
  • With the browser.newtabpage.activity-stream.newNewtabExperience.enabled pref set to false for the Pocket cards:
    • The box-radius is 4px.
    • The box-shadow has the "0 1px 4px 0 rgba(12, 12, 13, 0.1)" value.
  • With the browser.newtabpage.activity-stream.newNewtabExperience.enabled pref set to false for the "Highlights" cards:
    • The box-radius is 3px.
    • The box-shadow has the "var(--newtab-card-shadow)" value.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: