Open Bug 1956560 Opened 7 months ago Updated 6 months ago

Create a moz-box-item accordion variant

Categories

(Toolkit :: UI Widgets, enhancement)

enhancement

Tracking

()

People

(Reporter: mstriemer, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [recomp])

Attachments

(1 file)

There was recently an accordion style box item created using custom styling, but based off of the common moz-box-item element's design. It looks like another team wants to use a similar element, looks like it might be worth supporting this in Acorn directly, so let's create a variant of moz-box-item for this.

There is a figma mock up https://www.figma.com/design/2b02v18AppIpsTceWac2T3/Settings-Desktop?node-id=2424-8230&m=dev

Acceptance Criteria:

  • <moz-box-item layout="accordion"> creates a moz-box-item with support for the label/desc/icon/etc but hides its slotted content within a slot
  • Tests
  • Stories

Optional (would be nice but isn't added to base moz-box-item yet) (file a follow up if required):

  • Docs
  • Figma Code connect
Blocks: 1961987
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: