Add support for a message slot to moz-message-bar
Categories
(Toolkit :: UI Widgets, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox146 | --- | fixed |
People
(Reporter: hjones, Assigned: mkennedy)
References
(Blocks 1 open bug)
Details
(Whiteboard: [recomp])
Attachments
(3 files)
In the course of the SRD work we've run into a couple instances where designs call for a link embedded in the middle of moz-message-bar text. Although seemingly simple, this is not possible with the current moz-message-bar implementation, since it only supports string message or messageL10nId, but in the latter case we can't use data-l10n-name. To get around this we should add support for a message slot.
Once the slot is added we can assess if it's worth deprecating support for messageL10nId and messageL10nArgs.
This work should also cover ensuring we add documentation to both Storybook and the Acorn site.
Updated•3 months ago
|
| Reporter | ||
Comment 1•3 months ago
•
|
||
here's a specific example from the about:preferences mockups: https://www.figma.com/design/2b02v18AppIpsTceWac2T3/Settings-Desktop?node-id=6822-11912&m=dev
I think we also wanted to use a moz-message-bar for the windows-launch-on-login-disabled message, but went with a moz-box-item instead because it's more flexible. We should switch that to a moz-message-bar once we support this slot.
| Assignee | ||
Updated•3 months ago
|
| Reporter | ||
Comment 2•3 months ago
|
||
Just a note that as part of this work we should switch this element from moz-box-item to moz-message-bar. I think it was originally supposed to be a moz-message-bar, but we switched it because of the link limitation. It can be a second patch on the stack.
| Assignee | ||
Comment 3•3 months ago
|
||
| Assignee | ||
Comment 4•3 months ago
|
||
| Assignee | ||
Comment 5•3 months ago
|
||
Comment 6•2 months ago
|
||
Comment on attachment 9519239 [details]
Bug 1991104 - Update and consolidate message-related types in moz-message-bar r=#reusable-components-reviewers-rotation
Revision D268134 was moved to bug 1994819. Setting attachment 9519239 [details] to obsolete.
Updated•2 months ago
|
Updated•2 months ago
|
Comment 8•2 months ago
|
||
| bugherder | ||
Comment 10•2 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•2 months ago
|
Comment 11•2 months ago
|
||
Comment 12•2 months ago
|
||
| bugherder | ||
Updated•2 months ago
|
Description
•