Closed Bug 1908742 Opened 1 year ago Closed 1 year ago

Add ability to expand moz-card accordion by default

Categories

(Toolkit :: UI Widgets, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: jsudiaman, Assigned: tgiles)

References

(Blocks 1 open bug)

Details

(Whiteboard: [recomp])

Attachments

(1 file)

Current behavior of <moz-card type="accordion">:

The "accordion" type will initially not show any content. The card will contain an arrow to expand the card so that all of the content is visible.

It may be useful to have content that is collapsible, but with the card initially expanded and showing content to begin with. I noticed there is an expanded property, but it doesn't appear to be utilized.

See Also: → 1886408

Once we have this capability we'll want it added to the history and synced tabs in the sidebar so that the first two cards are open by default.

Severity: -- → N/A
Priority: -- → P2
Whiteboard: [recomp]
Assignee: nobody → tgiles

This change allows a developer to use the "expanded" attribute to force
an accordion card to be open on initial render. Additionally, one can
listen and check the "expanded" attribute to be sure of the card's
inner state.

Blocks: moz-card
Pushed by tgiles@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/597f793dec3c Allow moz-card to be expanded by default. r=reusable-components-reviewers,hjones
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Blocks: 1911118
Blocks: 1914438
No longer blocks: 1914438
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: