Find
C
ase-sensitive
R
egexp search
Path
Showing
187dc6ba
from
2026-04-06
:
Bug
2029275
- update libepoxy to new version d1f952c4565c389d82fd1657153e84e050f35b27;r=mjf
firefox-main
/
toolkit
/
content
/
widgets
/
moz-card
Navigation
Enable keyboard shortcuts
Revision control
Coverage:
100 %
2026-03-31
:
100 %
2026-04-01
:
100 %
2026-04-01
:
100 %
2026-04-01
:
100 %
2026-04-02
:
100 %
2026-04-02
:
100 %
2026-04-02
:
100 %
2026-04-03
:
100 %
2026-04-04
:
100 %
2026-04-04
:
100 %
2026-04-05
:
100 %
2026-04-05
:
100 %
2026-04-06
:
100 %
2026-04-06
:
100 %
Name
Description
Size
Coverage
moz-card.css
There is a border shown above this element in prefers-contrast. When there isn't a border, there's no need for the extra space.
3876
-
moz-card.figma.ts
1338
-
moz-card.mjs
Cards contain content and actions about a single subject. There are two card types: The default type where no type attribute is required and the card will have no extra functionality. 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. You can use the "expanded" attribute to force the accordion card to show its content on initial render. @property {string} heading - The heading text that will be used for the card. @property {number} headingLevel - Can be used to specify whether the heading is h1-h6 if not a regular span. @property {string} iconSrc - Path to the icon that should be displayed in the card. @property {string} type - (optional) The type of card. No type specified will be the default card. The other available type is "accordion" @property {boolean} expanded - A flag to indicate whether the card is expanded or not. Can be used to expand the content section of the accordion card on initial render. @slot content - The content to show inside of the card.
4469
100 %
moz-card.stories.mjs
The accordion card can be expanded either by the chevron icon button or by activating the details element. Mouse users can click on the chevron button or the details element, while keyboard users can tab to the details element and have a focus ring around the details element in the card. Additionally, the details element is announced as a button so I don't believe we are providing a degraded experience to non-mouse users. Bug 1854008: We should probably make the accordion button a clickable div or something that isn't announced to screen readers.
3641
-
README.stories.md
2578
-