Description

A card is a container, containing details and actions related to a selected item in the main workspace (e.g. cards of events related to a calendar).

Usage & Behavior

General guidelines

Structure

A card in read-only mode

A card in editable mode

Placement & Positioning

States

State

Read-Only

Editable

Comment

Regular

Selected

The selected card can be read-only or editable depending on the user’s permissions.

Hover

Focus

When using the arrow keys to navigate between items

Interaction

Validations & Errors

Best practices

Use cards:

Don’t use cards:

General

Accessibility compliance

Unless otherwise specified, see our general compliance information in Fundamentals - Accessibility.

Focus management

Keyboard

Description

Tab

Navigates to the next action.

Shift + Tab

Navigates to the previous action.

Space

Applies the focused action.

Arrows

  • Up - Navigates to the previous action. Stops at the first item in the list.

  • Down - Navigates to the next action. Stops at the last item in the list.

Holding down the key will scroll continuously.

Page Up/Home

Navigates to the first item.

Page Down/End

Navigates to the last item.

a-z, A-Z

  • Moves focus to the next menu item with a label starting with the typed character(s), if such an item exists.

  • Typing multiple characters in rapid succession moves the focus to the next menu item starting with the string of typed characters.

  • If no item labels match the typed character(s), the focus does not move.

Design

Zeplin link

Screen thumbnail

https://zpl.io/bPkWpRy

Code