Closed Bug 1811312 Opened 2 years ago Closed 2 years ago

New regular toggle design

Categories

(Toolkit :: Picture-in-Picture, task)

task
Points:
5

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: asafko, Assigned: kpatenio)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-pip3])

Attachments

(2 files, 1 obsolete file)

Functional requirements
New regular PiP toggle is implemented as per the updated UX.

Points: --- → 5
Whiteboard: [fidefe-pip3]
Severity: -- → N/A
Assignee: nobody → kpatenio
Status: NEW → ASSIGNED
Attachment #9314965 - Attachment description: WIP: Bug 1811312 - update regular PiP toggle → WIP: Bug 1811312 - update PiP toggle theme
Attachment #9314965 - Attachment description: WIP: Bug 1811312 - update PiP toggle theme → WIP: Bug 1811312 - update regular PiP toggle

Changes for this bug update both the regular and first-time toggles to the new UI styles specified in the Figma link: https://www.figma.com/file/Pk2jgzwiVvaq3Gf5ERKuAL/Picture-in-Picture?node-id=2420%3A24145&t=zMii4OptzUNVP3AO-0. It seemed easier to cover both toggles at once.

The summary of changes includes:

  • New styling
    • Updated styling for toggle shape and opacity
    • Update styling for dark toggle; default theme is dark
    • Added new styling for light toggle
  • New toggle behaviour concerning styling
    • By default, toggle theme will follow prefers-color-scheme. So if a light scheme is found, light toggle will be visible
    • Set up Nimbus for setting the PiP toggle theme; it will override color scheme preference
  • New tests
    • One test for verifying Nimbus PiP toggle settings
    • One test for updating toggle according to prefers-color-scheme

Some items still need confirmation:

  • What will happen to the “pip-explainer” for the expanded toggle
  • Final decision on how the PiP background will update (color-scheme, Nimbus, a new Firefox pref, etc.)

Open to feedback for the meantime. See this document for a sample Nimbus recipe and example manual testing workflows: https://docs.google.com/document/d/1zgzzDsIqv6VSAm9VjGTyn1cPwIELczxDTBX_89LFsIg/edit#heading=h.1mgf0sy3isby

Edited: the commit message I set for the second patch is the same as above.

Attachment #9314965 - Attachment is obsolete: true
Blocks: 1811308
Attachment #9315901 - Attachment description: WIP: Bug 1811312 - update PiP toggle styling and allow it to use light or dark scheme → WIP: Bug 1811312 - update PiP toggle styling
Attachment #9315902 - Attachment description: WIP: Bug 1811312 - add tests for new PiP toggle designs → WIP: Bug 1811312 - modify some test files for updated PiP toggle opacity
Attachment #9315901 - Attachment description: WIP: Bug 1811312 - update PiP toggle styling → Bug 1811312 - update PiP toggle styling
Attachment #9315902 - Attachment description: WIP: Bug 1811312 - modify some test files for updated PiP toggle opacity → Bug 1811312 - modify some test files for updated PiP toggle styling
Attachment #9315901 - Attachment description: Bug 1811312 - update PiP toggle styling → WIP: Bug 1811312 - update PiP toggle styling, with Nimbus support for first-time toggle variant
Attachment #9315901 - Attachment description: WIP: Bug 1811312 - update PiP toggle styling, with Nimbus support for first-time toggle variant → Bug 1811312 - update PiP toggle styling, with Nimbus support for first-time toggle variant
Pushed by kpatenio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a750d61443ee update PiP toggle styling, with Nimbus support for first-time toggle variant r=pip-reviewers,cmkm,niklas,desktop-theme-reviewers,Itiel https://hg.mozilla.org/integration/autoland/rev/ee4fb4c21092 modify some test files for updated PiP toggle styling r=cmkm,pip-reviewers,mhowell
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Regressions: 1824090
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: