Closed Bug 1855471 Opened 1 year ago Closed 5 months ago

Stop using deprecated message-bar element for outstanding shopping message bars

Categories

(Firefox :: Shopping, task)

task

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: hjones, Assigned: hjones)

References

Details

(Whiteboard: [recomp])

Attachments

(1 file)

Bug 1844783 handled updating most of the message bars in the shopping sidebar to use the new moz-message-bar component, but there were a few cases that the new component doesn't support yet that we decided to split out for later. Specifically we still need to address:

  • the "stale" message bar (moz-message-bar doesn't support removing the background color)
  • the "analysis-in-progress" message bar (moz-message-bar doesn't support changing the icon + the blue loading spinner would be less visible on the blue message bar background, which is the new color for our "informational" message bar variant)
  • the "reanalysis-in-progress" message bar (has both of the issues listed above)

Before we can replace these message bars some collaboration needs to happen between the shopping and recomp teams to decide if we need to tweak the designs slightly, or if we want to modify moz-message-bar to support some of these use cases.

See Also: → 1844783
Blocks: 1845151

The <shopping-message-bar> component is the last place we're using the deprecated <message-bar> component. As such, it's the one thing standing preventing us from remvoing the old <message-bar> implementation (see Bug 1845151). I took a quick look and the <message-bar>s here aren't actually providing any styling/layout and seem to be easily replacable with <div>s.

Assignee: nobody → hjones
Status: NEW → ASSIGNED

At this point we don't want to support some kind of un-styled variant of moz-message-bar, which is what we would need if we wanted to replace these simple text or text + button combos with that component. The fact that the styling can be preserved just by wrapping these "message bars" in a <div> suggests that they don't really need to use a custom element at all. For the sake of being able to fully remove the older message-bar element I'm changing the scope of this bug slightly.

Summary: Use moz-message-bar for additional shopping message bars → Stop using deprecated message-bar element for outstanding shopping message bars
Pushed by hjones@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9a6af72177a3 Replace last <message-bar> instances with <div>s r=shopping-reviewers,Gijs
Whiteboard: [recomp]
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Regressions: 1893193
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: