Closed Bug 1966433 Opened 1 year ago Closed 10 months ago

Implement support for a slotted action buttons and links in moz-promo

Categories

(Toolkit :: UI Widgets, task)

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: hjones, Assigned: tgiles)

References

(Blocks 1 open bug)

Details

(Whiteboard: [recomp])

Attachments

(2 files)

Once we have the basic moz-promo element implemented we'll want to add support for at least one "action" button. We'll also need to make the promo optionally dismissable via a dismissable property/attr. moz-message-bar should provide some prior art that we can draw from here.

Note: dismissable will move to another bug

Acceptance criteria:

  • An actions slot is added for the buttons and links
  • Story
  • Basic tests
  • stretch goals:
    • Fun primary buttons are purple
    • Tokens for primary fun buttons are included in design-tokens.json for Figma export
Summary: Implement support for a slotted action button and a dismiss button in moz-promo → Implement support for a slotted action buttons and links in moz-promo
Depends on: 1966422
Blocks: 1966422
No longer depends on: 1966422
Assignee: nobody → tgiles
Status: NEW → ASSIGNED

This patch adds an actions slot to the moz-promo component. In order
to have a slotted moz-button be visible in dark mode, I added some
reasonable dark mode colors to the vibrant promo since these colors are
not finalized.

Since the design is not finalized, I did not match the layout of the UI
to the design for the following case: long heading and body text, image
aligned at the center, element is slotted within actions. This will be
addressed in Bug 1977900.

This patch adds a support-link slot to the moz-promo element. Since the
design of moz-promo is not finalized, I did not match the layout of the
UI to the current design. This will be addressed in Bug 1977900.

Blocks: 1978347
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: