Legacy card
This is the legacy version of the Card component which is in the process of being updated to a more flexible and composable API. Cards are used to group similar concepts and tasks together to make Shopify easier for merchants to scan, read, and get things done.
Props
No props found for this component, run `yarn gen:docs` to generate component meta first.
Best practices
The keyboard key component should:
- Include a heading to introduce and explain the shortcuts being described when more than one shortcut is listed
- Include an action label to describe what will happen if merchants use the key combination
Content guidelines
Heading
Headings above the keyboard key should:
- Label the type of keyboard shortcuts being presented
- Follow the content guidelines for headings and subheadings
Shortcut description
The shortcut description should describe what action is taken when merchants tap certain keys. When a hotkey combination takes merchants to a location in the interface, the format should be:
Properties | Type | Description |
---|---|---|
children | string | The content to display inside the key |
Related components
- To add a tooltip for a button with an associated keyboard shortcut, use the tooltip component
Accessibility
The text of the keyboard key component is read by screen readers, but the visual formatting isn’t conveyed. Ensure that merchants are able to understand information about keyboard shortcuts without relying on the visual style of the component.