Skip to main content

An official website of the United States government

Here's how you know

An official website of the United States government

Here's how you know

Theme:

Design system switcher

Version:

Design system switcher

Theme:

Design system switcher

Version:

Design system switcher

Card

Examples

Accessibility

Accessibility

The Card component is a presentational container intended to visually group related content. While the component itself meets relevant WCAG 2.0 accessibility criteria, teams should thoroughly test their card implementations to ensure they remain accessible in context. Because the Card is a styled <div> with no inherent semantics or interactivity, accessibility relies entirely on the structure and elements placed within it.

General accessibility guidance

  • Ensure that content within the card (such as text, buttons, or icons) meets all relevant accessibility criteria, including contrast, focus visibility, and heading hierarchy.
  • If a card is meant to be interactive (e.g., clickable to navigate), use a semantic <a> or <button>. See our links vs. buttons guidance.
  • Maintain logical heading structure inside cards (e.g., h2–h3 levels) to preserve page hierarchy.

Accessibility testing

Card components often contain text, buttons, and icons. The accessibility of those elements should be tested in the context of the Card.

Code

React

Review Storybook for React guidance of this component.

Component maturity

For more information about how we tested and validated our work for each checklist item, read our component maturity documentation.

Accessibility

  • Color

    Meets AA color contrast standards for accessibility and color blindness.
    Complete
  • Forced Colors Mode (FCM)

    While using FCM the components text is legible and improves readability.
    Complete
  • WCAG 2.1 Level AA Conformance

    All Axe checks for WCAG AA compliance have passed.
    Not applicable
  • Screen readers

    VoiceOver, NVDA, and JAWS screen readers provide concise communication and interaction.
    Not applicable
  • Keyboard navigation

    Component is fully navigable with a keyboard.
    Not applicable

Code

  • Storybook

    Component has stories to cover all defined props.
    Complete
  • Responsive

    Component designed to work in all responsive breakpoints.
    Complete
  • Spanish translations

    Includes Spanish translations for default text content.
    Not applicable

Tokens

  • Code

    Tokens implemented in code.
    Complete
  • Design

    Tokens implemented in Figma.
    Incomplete