CardVertical
A course card with the image on top and the title, progress and metadata below, optionally with a favorite or overflow action.
Use cases
People using assistive technology should be able to:
- Hear which course a card is about, and move from card to card.
- Open the course, save it or open its menu without leaving the card.
- Hear how far through the course they are.
Reading order
The card has no name of its own: its heading is read first, so a name would only repeat it. The action button adds the title to its own name so it is unique across cards. Write titles that tell courses apart. The progress bar has its own short name, Completion, because the title is already read just before it. Describe the image with thumbnailAlt only when it adds something the title doesn’t.
Keyboard and focus
With href, the title is a link that covers the whole card: Tab reaches it first, then the Favorite or Menu button, then the next card. Without href, the action button is the card’s only stop. Focus follows the DOM, so keep cards in reading order. The menu works like any menu: arrows move, Escape closes it and returns focus to the button.
Every component follows ADR-025, ADR-026 and ADR-028(states, prop vocabulary, focus indicator); they are not repeated per component.