Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 41eb034

Browse files
authored
Merge pull request #5784 from department-of-veterans-affairs/5725-Update-screenshots-for-status-tag
Cards: Updated screenshots to use Tag - Status
2 parents 48a1726 + 6a126b0 commit 41eb034

7 files changed

Lines changed: 107 additions & 14 deletions

File tree

src/_components/card/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ A radio button tile has a title and description within the label and a Card-like
183183

184184
### A list of services or tools
185185

186-
{% include component-example.html alt="A set of information—designed to be shown within a list—that contains a header, a bright call to action, a Status Tag, four sets of data formatted as 'Label: Value' pairs, and a link." file="/images/components/service-list-item/annotated-service-list-item-component.png" %}
186+
{% include storybook-preview.html story="components-va-service-list-item--maximal-base" link_text="va-service-list-item maximal example" height="400px" %}
187187

188188
When you want to show benefits or tools the user is currently enrolled in or has access to, use the [Service list item]({{ site.baseurl }}/components/service-list-item) component instead of the Card component.
189189

src/_components/service-list-item.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,24 @@ anchors:
5858

5959
### Anatomy or layout details
6060

61-
{% include component-example.html alt="An annotated Service List Item, calling out the header, Critical Action, status, details, and link." file="/images/components/service-list-item/annotated-service-list-item-component.png" %}
62-
6361
A Service List Item can have:
6462

63+
* **Status (required)**
64+
* Status must be represented by a [Tag - Status]({{ site.baseurl }}/components/tag/tag-status/) component.
65+
* Every benefit or tool in a list has a set of internal states, which are used to track the progress of enrolling in that benefit or using that tool. A status is the way to communicate the item's state to the user (such as Active, Pending, etc).
66+
* Statuses do not have to mirror internal states in a one-to-one manner. (They can, but they are not required to.) Every state change does not necessarily warrant a status change.
6567
* **Header (required)**
6668
* The header consists of an icon (optional), header text, and chevron. These elements combine to create a link to a page with more details about the benefit or tool. All Service List Items must link to a details page from the header.
6769
* The icon should only be used when listing VA benefits. The icons should include the [standard icons](https://www.figma.com/design/afurtw4iqQe6y4gXfNfkkk/VADS-Component-Library?node-id=293-6211&t=h01Z6dAbcelp997f-1) for VA benefits, placed within a circle using the [color]({{ site.baseurl }}/foundation/color-palette#semantic-color-tokens) associated with each benefit.
6870
* Headers should be visually consistent in each list item within the list. For example, if some list item headers have icons, all list items in the list should have icons.
6971
* The header has a default, hover, active, focus, and visited state. See details in the [Header states section](#header-states) below.
70-
* **Status (required)**
71-
* Status must be represented by a gray Tag component.
72-
* Every benefit or tool in a list has a set of internal states, which are used to track the progress of enrolling in that benefit or using that tool. A status is the way to communicate the item's state to the user (such as Active, Pending, etc).
73-
* Statuses do not have to mirror internal states in a one-to-one manner. (They can, but they are not required to.) Every state change does not necessarily warrant a status change.
7472
* **Critical Action**
7573
* The [Critical Action]({{ site.baseurl }}/components/critical-action) component is still under development. It navigates the user to the most direct path to take action on the critical action. Future updates will include adjustments to color contrast, focus states, and more.
7674
* **Details (required)**
7775
* The details provide users with helpful information, formatted in a “Label: Value” structure (for example, “Approved on: May 5, 2011”).
7876
* There can be anywhere from one to five lines of “Label: Value” pairs.
7977
* **Link (optional)**
80-
* Some Service List Items might require an additional link, in addition to the details page linked to from the header and the actionable link offered in the [Critical Action]({{ site.baseurl }}/components/critical-action) component. In these cases, one additional link may be displayed at the bottom of the Service List Item.
81-
The link should use the standard default, hover, focus, active, and visited link states.
78+
* Some Service List Items might require an additional link, in addition to the details page linked to from the header and the actionable link offered in the [Critical Action]({{ site.baseurl }}/components/critical-action) component. In these cases, one additional link may be displayed at the bottom of the Service List Item. The link should use the standard default, hover, focus, active, and visited link states.
8279

8380
### Header states
8481
* **Default**: The link and chevron are the standard vads-color-link.
@@ -113,4 +110,4 @@ The below components are nested within the Service List Item component:
113110
* [Tag]({{ site.baseurl }}/components/tag)
114111
* [Link]({{ site.baseurl }}/components/link/)
115112

116-
{% include _component-checklist.html component_name="va-service-list-item" %}
113+
{% include _component-checklist.html component_name="va-service-list-item" %}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<div class="site-component-example vads-u-padding--2">
2+
<va-card>
3+
<va-tag-status status="info" text="Draft"></va-tag-status>
4+
<h3 class="vads-u-margin-top--1">Application for VA education benefits (22-1990)</h3>
5+
<span>VA Form 22-1990N</span>
6+
<div class="status-indicator vads-u-margin-top--1">
7+
<va-icon icon="info" size="3"></va-icon>
8+
<span>Application expires on: December 20, 2023</span>
9+
</div>
10+
<p class="vads-u-margin-top--1">Last saved on: December 20, 2023</p>
11+
<va-link href="https://www.va.gov" text="Continue application" />
12+
</va-card>
13+
</div>
14+
15+
<div class="site-component-example vads-u-padding--2">
16+
<va-card>
17+
<va-tag-status status="info" text="Submission in progress"></va-tag-status>
18+
<h3 class="vads-u-margin-top--1">Application for authorization to release medical information</h3>
19+
<span>VA Form 21-4142</span>
20+
<p class="vads-u-margin-top--1">Next step: We'll prepare your form for review. This may take up to 30 days.</p>
21+
<p>If you have questions, call us at <va-telephone contact="8773459876"></va-telephone> (TTY: <va-telephone contact="711"></va-telephone>). We're here Monday through Friday, 8:00 a.m. to 9:00 p.m. ET.</p>
22+
</va-card>
23+
</div>
24+
25+
<div class="site-component-example vads-u-padding--2">
26+
<va-card>
27+
<va-tag-status status="success" text="Received"></va-tag-status>
28+
<h3 class="vads-u-margin-top--1">Application for authorization to release medical information</h3>
29+
<span>VA Form 21-4142</span>
30+
<p class="vads-u-margin-top--1">
31+
<va-link download filetype="PDF" href="https://www.va.gov" pages="5" text="Download your completed form" />
32+
</p>
33+
<p>Submitted on: [Month Day, 20XX] <br />
34+
Received on: [Month Day, 20XX] <br />
35+
Download available until: [Month Day, 20XX]
36+
</p>
37+
<p>Next step: We'll review your form. If we need more information, we'll contact you.</p>
38+
<p>If you have questions, call us at <va-telephone contact="8773459876"></va-telephone> (TTY: <va-telephone contact="711"></va-telephone>). We're here Monday through Friday, 8:00 a.m. to 9:00 p.m. ET.</p>
39+
</va-card>
40+
</div>
41+
42+
<div class="site-component-example vads-u-padding--2">
43+
<va-card>
44+
<va-tag-status status="error" text="Action needed"></va-tag-status>
45+
<h3 class="vads-u-margin-top--1">Application for authorization to release medical information</h3>
46+
<span>VA Form 21-4142</span>
47+
48+
<p class="vads-u-margin-top--1">
49+
<va-link download filetype="PDF" href="https://www.va.gov" pages="5" text="Download your completed form" />
50+
</p>
51+
52+
<p>Submitted on: [Month Day, 20XX] <br />
53+
Submission failed on: [Month Day, 20XX] <br />
54+
</p>
55+
56+
<va-alert status="error" slim class="vads-u-margin-top--2">
57+
<p class="vads-u-margin-y--0">We're sorry. There was a problem with our system. We couldn't process this form. Call us at <va-telephone contact="8773459876"></va-telephone> (TTY: <va-telephone contact="711"></va-telephone>). We're here Monday through Friday, 8:00 a.m. to 9:00 p.m. ET.</p>
58+
</va-alert>
59+
</va-card>
60+
</div>

src/_patterns/help-users-to/check-personal-information.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,26 @@ The on this page component should start with a link to the list itself, and then
6969
#### Integrating contextual questions in the cards
7070
Overall questions should be in a content area accessed by the "on this page" component, but more contextual questions can be "additional info" components on the cards themselves. Example provided.
7171

72-
![image]({{site.baseurl}}/images/patterns/help-users-to/check-personal-information/additional-info.png)
72+
<div class="site-component-example vads-u-padding--2">
73+
<va-card>
74+
<va-tag-status status="info" text="In progress"></va-tag-status>
75+
<h3 class="vads-u-margin-top--1">Claim for compensation</h3>
76+
<span>Received: May 15, 2023</span>
77+
<div class="status-indicator vads-u-margin-top--1">
78+
<va-icon icon="mail" size="3"></va-icon>
79+
<span>We sent you a development letter</span>
80+
</div>
81+
<p class="vads-u-margin-top--1">Step 3 of 5: Evidence gathering, review, and decision <br/>
82+
Moved to this step on June 21, 2024</p>
83+
84+
<va-alert status="warning" slim class="vads-u-margin-top--2">
85+
<p class="vads-u-margin-y--0">An item in the claim needs your attention</p>
86+
</va-alert>
87+
88+
89+
<va-link class="vads-u-margin-top--2" href="/disability/view-claim-status/" active text="Details" />
90+
</va-card>
91+
</div>
7392

7493
#### Items on the card and optional card elements
7594
Make sure to not overload elements on the cards. If you're finding you need to let the user know about a fair amount of information about a single card, link to a details page with more detail.

src/_patterns/help-users-to/keep-a-record-of-submitted-information.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,22 @@ Note that breadcrumbs should be excluded from the print preview/final printout,
4040

4141
### My VA card with download link
4242

43-
{% include component-example.html alt="An example My VA status card with download link" file="/images/patterns/help-users-to/stay-informed-of-their-application-status/myva-status-cards.png" width="75%" %}
43+
<div class="site-component-example vads-u-padding--2">
44+
<va-card>
45+
<va-tag-status status="success" text="Received"></va-tag-status>
46+
<h3 class="vads-u-margin-top--1">Application for authorization to release medical information</h3>
47+
<span>VA Form 21-4142</span>
48+
<p class="vads-u-margin-top--1">
49+
<va-link download filetype="PDF" href="https://www.va.gov" pages="5" text="Download your completed form" />
50+
</p>
51+
<p>Submitted on: [Month Day, 20XX] <br />
52+
Received on: [Month Day, 20XX] <br />
53+
Download available until: [Month Day, 20XX]
54+
</p>
55+
<p>Next step: We'll review your form. If we need more information, we'll contact you.</p>
56+
<p>If you have questions, call us at <va-telephone contact="8773459876"></va-telephone> (TTY: <va-telephone contact="711"></va-telephone>). We're here Monday through Friday, 8:00 a.m. to 9:00 p.m. ET.</p>
57+
</va-card>
58+
</div>
4459

4560
Note that the download link includes the expiration date for the file download (60 days from submission, as described in the research findings below).
4661

src/_patterns/help-users-to/manage-benefits-and-tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Below are some potential benefits a Veteran or family member may enroll in, whic
8282
* Pension
8383
* Vocational rehabilitation (VRE)
8484

85-
{% include component-example.html alt="A list of benefits a Veteran is currently enrolled in. Two of the benefits have Critical Action components shown, linking the user to a page where they can take important actions." file="/images/patterns/help-users-to/manage-benefits-and-tools/service-list-example.png" caption="An example of how this pattern can be applied to help users navigate and learn about their benefits." class="x2" %}
85+
{% include storybook-preview.html story="components-va-service-list-item--service-list-with-multiple-service-list-items" link_text="Service List showing multiple benefits" height="600px" %}
8686

8787
### Tools
8888

src/_patterns/help-users-to/stay-informed-of-their-application-status.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ anchors:
2727

2828
### Form submission status in My VA
2929

30-
{% include component-example.html alt="Screenshots of 4 My VA status cards." file="/images/patterns/help-users-to/stay-informed-of-their-application-status/myva-status-cards.png" caption="Four Card component variations used to show the status of someone's form or application submission in My VA." reverse="true" %}
30+
#### In-progress forms
31+
32+
{% include patterns/form-status-cards.html %}
3133

3234
## How to design and build
3335

0 commit comments

Comments
 (0)