Closed Bug 1839725 Opened 1 year ago Closed 1 year ago

Create main sidebar container

Categories

(Firefox :: Shopping, task, P2)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: niklas, Assigned: niklas)

References

Details

(Whiteboard: [fidefe-shopping])

Attachments

(2 files)

The main sidebar container should contain the header with title and Firefox icon and the close button.

Animation can potentially be coped from HNT settings panel (TBD)

Sidebar will push content over, not overlay the content page

See figma for design

Blocks: shopping2023

Note the header is sticky: it remains visible at the top of the sidebar even if the user scrolls through sidebar content.

See also a11y annotations in figma: https://www.figma.com/file/Wu4kaHSfKSQnzkym7qek3R/Shopping-Experience-MVP?type=design&node-id=1-265&mode=design&t=s4GFkPNxsyXbFQRZ-0

Figma shows lots of different content inside the main container, but the key bit is the stuff in the header and the X to hide the sidebar, which is shown in the screenshot.

The text in the header is TBD.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [fidefe-shopping]
Assignee: nobody → nbaumgardner
Status: NEW → ASSIGNED
Attachment #9342624 - Attachment description: WIP: Bug 1839725 - Create main sidebar container for shopping. r=#shopping-reviewers! → Bug 1839725 - Create main sidebar container for shopping. r=#shopping-reviewers!

Hi emilio, can you please see https://phabricator.services.mozilla.com/D182932#inline-1015075 and suggest a solution so that the scrollbar won't consume part of the padding, in a way that the widths specified there will still apply?

You can test this by flipping browser.shopping.experience2023.enabled to true and opening an amazon product page, and then navigating to chrome://browser/content/shopping/shopping.html

Flags: needinfo?(emilio)

I mean, the scrollbar needs to consume some of the space, the reason it doesn't seem to is because of the hard-coded width: 288px in the shopping-card. I think that should be removed, then stuff works as you expect, because the shopping card shrinks as needed. Or what else am I missing? Otherwise there's no other way of placing the scrollbar.

Flags: needinfo?(emilio)
Pushed by nbaumgardner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fabc28b96964 Create main sidebar container for shopping. r=shopping-reviewers,Itiel,fluent-reviewers,bolsson,kpatenio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: