Implement support for a slotted action buttons and links in moz-promo
Categories
(Toolkit :: UI Widgets, task)
Tracking
()
| 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.
Updated•1 year ago
|
Comment 1•11 months ago
|
||
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
| Reporter | ||
Updated•10 months ago
|
| Assignee | ||
Updated•10 months ago
|
| Assignee | ||
Comment 2•10 months ago
|
||
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.
| Assignee | ||
Comment 3•10 months ago
|
||
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.
Comment 5•10 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/481e1ffa8c0b
https://hg.mozilla.org/mozilla-central/rev/6a786dbfdb66
Updated•9 months ago
|
Description
•