Closed Bug 1991104 Opened 3 months ago Closed 2 months ago

Add support for a message slot to moz-message-bar

Categories

(Toolkit :: UI Widgets, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
146 Branch
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.

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.

Blocks: 1983937
Assignee: nobody → mkennedy

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.

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.

Attachment #9519239 - Attachment is obsolete: true
Attachment #9519239 - Attachment description: Bug 1991104 - Update message-related types in moz-message-bar r=#reusable-components-reviewers-rotation → Bug 1991104 - Update and consolidate message-related types in moz-message-bar r=#reusable-components-reviewers-rotation
Attachment #9519239 - Attachment is obsolete: false
Keywords: leave-open
Keywords: leave-open
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
QA Whiteboard: [qa-triage-done-c147/b146]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: