Content card
Compact displays that summarize or direct users to more information.
Creating access for everyone, everywhere requires attention to accessibility attributes, best practices, and requirements. Find accessibility guidance below.
Note: Components in each code library are implemented differently (especially Flutter). Many of the behaviors and attributes described are already handled for you as part of our components. Product teams are responsible for ensuring their apps meet all current requirements. Some of the information below may not apply to your implementation.
Best practices
Ensure the following best practices are met when implementing this component during development.
- Ensure buttons and links have meaningful
if there are multiple content cards with generic link or button labels. For example, use “close cardA” so a screen reader will announce which card the button goes to. - Ensure clickable cards don’t have additional controls like a close button, as the whole card is a button.
- Consider using an HTML heading element for each card to help with keyboard navigation and page summaries for screen readers. Be sure to use the right heading level for the hierarchy of the page so that there aren’t skipped levels, even if you style the heading to look like a different level.
Keyboard controls
Key | Behavior |
---|---|
Enter | Prompts the default action associated with a button. |
Tab | Moves to the next focusable element. |
Shift + Tab | Moves to the previous focusable element. |
VGAR (internal only)
Find links to the Visa Global Accessibility Requirements (VGAR) for this component.- Use Headings (TXT-1-1)
- Sequential Headings (TXT-1-4)
- Paragraph Markup for Text (TXT-2-2)
- Group Items with Lists (TXT-2-3)
- Link Text In and Out of Context (INT-5-2)
- Interactive Controls (INT-5)
- Keyboard Support (NAV-1-1)
- No Keyboard Trap (NAV-1-3)
- Visible Keyboard Focus (NAV-2-1)
- Default Tab Order (NAV-2-3)
- Text Alternatives (VIS-3-1)