To ensure that usage of this component complies with the accessibility guidelines, do the following:
Use captions sparingly and only with accompanied media
Do not use caption text styles for body copy. It is smaller than the recommended size for text readability
This component has compliance with WCAG guidelines by:
Using text color with a Level AA contrast ratio of 4.5:1 contrast between the text color and the background but only when displayed on light backgrounds
The Caption component has two separate fields: Summary and Credit. While they often appear together, one is not dependent on the other. Both are, however, dependent on media content (image, video, etc).
There are two text fields available within a caption:
Summary text gives the media context
Keep summary text concise, 1-2 lines at LG breakpoint
Use sentence case
Credit provides attribution to the correct sources
Helps users gauge the strength and validity of the material the author has used
Begin credit text with “Video Credit” or “Image Credit”
The CdrCaption component is developed to work within a composition with other components; however, composition-type components have not been developed yet.
The below example demonstrates how to extend this component for use within a figure.
<figure><cdr-imgsrc="http://via.placeholder.com/350x150"/><figcaption>
<cdr-caption
summary="Testing and validating the final fit of the 2018/2019 Tecnica ski boot collection during the September 2017 focus group in Park City, Utah"
credit="Image Credit: Blizzard Tecnica”
/>
</figcaption></figure>