Closed Bug 1689830 Opened 3 years ago Closed 3 years ago

Stop using <deck> for .wizard-page-box

Categories

(Toolkit :: UI Widgets, task)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: ntim, Assigned: ntim)

References

(Regressed 1 open bug)

Details

Attachments

(2 files)

https://searchfox.org/mozilla-central/rev/868935867c6241e1302e64cf9be8f56db0fd0d1c/toolkit/content/widgets/wizard.js#72-74

The <deck> custom element is not going to work there, because it considers DOM children (slot) unlike nsDeckFrame which considers frame tree children (wizardpage).

Adding hacks into the <deck> CE is probably not worth it given that they'll need to cover CSS styling, or the mutation observer. A customized-slot element is also not worth maintaining either.

Best path is probably to just manually implement the showing/hiding of pages in the wizard CE.

Attached file wizard mockup

Fwiw, you can use any display value on <slot>, so we could remove the <deck> there and use display:grid directly on the slot itself if that helps. Given that <wizard> already has a "page index", maybe can use that instead of the <deck>'s selectedIndex?

Here's a mockup of that idea...

Assignee: nobody → ntim.bugs
Status: NEW → ASSIGNED
Pushed by ntim.bugs@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3a17d14515b6
Stop using <deck> for .wizard-page-box. r=bgrins
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Regressions: 1803787
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: