CdrCard is a simple wrapper component that allows for composing various card layouts.
Cards should always be used to link to other content, and the cdr-card__link utility class should be used on the link element to ensure that the entire card functions as a click target.
Because CdrCard is a simple wrapper component, its behavior can be customized or overridden in a variety of ways. For example, adding a border, inset padding, or modifying the link behavior.
Many WCAG requirements are contextual to their implementation. To ensure that usage of this component complies with accessibility guidelines you are responsible for the following:
Leave the default tag prop of article if the content includes a heading AND the content would be as useful on another web page
Set the tag prop to section if the content contains a heading, but the content is dependent on its context to be meaningful
Set the tag prop to div if your card title won’t be using a heading tag. This ensures it will not appear in the document’s outline
CdrCard must contain a linked title
All actionable elements contained within CdrCard must follow the guidelines outlined within their accessibility sections
For projects that cannot make use of the Vue.js component, the CdrCard styles are available through the `@rei/cdr-component-variables` package as SCSS and LESS mixins which can be applied to plain HTML elements.
See examples on the Component Variables page.