Skip to content

Commit 91d1220

Browse files
authored
Merge branch 'main' into download-link-guidance
2 parents 0146b6d + 365148f commit 91d1220

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/_components/card.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ anchors:
7272
Use this variation when you have a short status which can use the [Tag component]({{ site.baseurl }}/components/tag).
7373

7474
1. **Background color.** Currently [$color-gray-lightest]({{ site.baseurl }}/foundation/color-palette#grayscale).
75-
2. **Status.** Status using the [Tag component]({{ site.baseurl }}/components/tag).
75+
2. **Status.** Status using the [Tag component]({{ site.baseurl }}/components/tag). Status should: announce "status" by screen readers, the visible status text, and the header text. See [accessibility considerations](#accessibility-considerations) for more details.
7676
3. **Header.** Header that summarizes the card's content.
7777
4. **Secondary content.** Body text. Includes next steps and bold dates/times to draw attention to the most important details on the card.
7878
5. **Call to action.** An [action link]({{ site.baseurl }}/components/link/action) should be used for the primary call-to-action. A [link]({{ site.baseurl }}/components/link) may also be used.
@@ -230,6 +230,15 @@ A radio button tile has a title and description within the label and a Card-like
230230
* **Use the appropriate heading level for your page.** Set the heading level based on the content of your page to make sure card headings are in the correct, logical outline order. Use CSS to style the header visually if you need a different visual representation.
231231
* **Use unordered lists and list items.** Use a `ul` for a card group and an `li` for each card. This formatting allows screen readers to enumerate the items in the card group and allows shortcuts between list items.
232232
* **Keyboard navigation.** The tab key should bring focus to the call(s) to action within the card. The enter key or spacebar should open a [Link]({{ site.baseurl }}/components/link) or [Link - Action]({{ site.baseurl }}/components/link/action).
233+
* **Announce "Status" to screen readers** When adding status to a card, it's important to have the word "status" announced by screen readers before the actual status and header text of the card. For example:
234+
235+
```html
236+
<h3>
237+
<span class="vads-u-visibility--screen-reader">Status</span>
238+
<span class="usa-label vads-u-display--inline-block vads-u-font-family--sans vads-u-font-weight--normal vads-u-margin-bottom--1">In progress</span>
239+
<span class="vads-u-display--block">Claim for compensation</span>
240+
</h3>
241+
```
233242

234243
## Related
235244

src/_components/tag.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ anchors:
2121
* To draw attention to new, important content on a page that might otherwise be missed.
2222
* To filter results with one or more tags.
2323
* To indicate the number of new or unread items within a container. For example, to indicate the number of unread emails within a person’s inbox.
24+
* To indicate a status in a card. See [Status via Tag]({{ site.baseurl }}components/card#status-via-tag) within a `card` component.
2425

2526
### When to consider something else
2627

0 commit comments

Comments
 (0)