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

Commit 18b382d

Browse files
authored
Merge pull request #6037 from department-of-veterans-affairs/minimal-form-template-clarification
Clarify when the minimal form header and footer should be used
2 parents 27ea21b + 6849175 commit 18b382d

4 files changed

Lines changed: 44 additions & 25 deletions

File tree

src/_templates/forms/confirmation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ The form confirmation page consists of:
4646

4747
## Structure
4848

49+
Use the [Header]({{site.baseurl}}/components/header/) and [Footer]({{site.baseurl}}/components/footer/) components for the confirmation page.
50+
4951
### Page title
5052

5153
The page title (`H1`) for this page should carry over from the online form.

src/_templates/forms/form-step-minimal.md

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,26 @@ permalink: /templates/forms/form-step-minimal
44
has-parent: /templates/forms/
55
title: Form Step - Minimal
66
status: use-with-caution-available
7-
intro-text: Use the form step - minimal template to create all pages of a minimal form flow except for the introduction, review, and confirmation pages.
7+
intro-text: Use the form step - minimal template to create all pages of a minimal form flow except for the introduction and confirmation pages.
88
figma-link: https://www.figma.com/design/WzqnYSC2B42aFaSCu7L3Dk/Minimal-Form-Flow-Template?node-id=1-114658&p=f&t=yvI1hQv6TghandYK-11
99
anchors:
1010
- anchor: About
1111
- anchor: Usage
1212
- anchor: Structure
1313
- anchor: Research findings
1414
- anchor: Code considerations
15+
- anchor: Related
1516
---
1617

1718
## About
1819

1920
This template is for all internal pages of a digitized form that asks Veterans to enter information, select an option, or upload supporting documents.
20-
The form page template uses the minimal header and footer components in a form flow. The header and footer are simpler and don’t show navigation elements. This frees up space on the page and allows the form submitter to focus on the task
2121

22-
We display the [plain language form name](https://design.va.gov/templates/forms/introduction#title-subtitle-and-intro) in the minimal header without any heading structure. The plain language form name should match what is on the introduction page.
22+
The form step - minimal template uses the Header minimal and Footer minimal components in a form flow. The header and footer are simpler and don't show navigation elements. This frees up space on the page and allows the form submitter to focus on the task.
2323

24-
Use the H1 of the question page to describe the information needed or ask the specific question on the form page.
24+
We display the [plain language form name](https://design.va.gov/templates/forms/introduction#title-subtitle-and-intro) in the Header minimal without any heading structure. The plain language form name should match what is on the introduction page.
25+
26+
Use the heading level 1 (`H1`) of the question page to describe the information needed or ask the specific question on the form page.
2527

2628
### Examples
2729
There are two versions of the form page template:
@@ -34,71 +36,73 @@ There are two versions of the form page template:
3436

3537

3638
The authenticated form page template consists of:
37-
1. [Minimal header]({{ site.baseurl }}/components/header/header-minimal) with form title & subtitle
39+
1. [Header minimal]({{ site.baseurl }}/components/header/header-minimal) with form title & subtitle
3840
2. [Back link]({{ site.baseurl }}/components/link/#when-to-use-a-back-link)
3941
3. [Progress bar - segmented with step label]({{ site.baseurl }}/components/form/progress-bar-segmented)
4042
4. Autosave message
4143
5. Page header
4244
6. Form question content (may include page header)
4345
7. Finish later link
44-
8. Button (Continue)
46+
8. [Button]({{ site.baseurl }}/components/button) (Continue)
4547
9. [Autosave alert]({{ site.baseurl }}/components/form/autosave)
4648
10. [Need help? component]({{ site.baseurl }}/components/form/need-help)
4749
11. [Feedback pattern]({{ site.baseurl }}/patterns/ask-users-for/feedback)
48-
12. [Minimal footer]({{ site.baseurl }}/components/footer/footer-minimal)
50+
12. [Footer minimal]({{ site.baseurl }}/components/footer/footer-minimal)
4951

5052
#### Example - Unauthenticated
5153

5254
{% include component-example.html alt="An example of a form step page for unauthenticated users." file="/images/templates/forms/minimal-form-step/2-example-unauth.png" caption="Anatomy of the form step template for unauthenticated users." class="x2" %}
5355

5456

5557
The unauthenticated question page has these items:
56-
1. [Minimal header]({{ site.baseurl }}/components/header/header-minimal) with form title & subtitle
58+
1. [Header minimal]({{ site.baseurl }}/components/header/header-minimal) with form title & subtitle
5759
2. [Back link]({{ site.baseurl }}/components/link/#when-to-use-a-back-link)
5860
3. [Progress bar - segmented with step label]({{ site.baseurl }}/components/form/progress-bar-segmented)
5961
4. Page header
6062
5. Form question content (may include page header)
61-
6. Button (Continue)
63+
6. [Button]({{ site.baseurl }}/components/button) (Continue)
6264
7. [Need help? component]({{ site.baseurl }}/components/form/need-help)
6365
8. [Feedback pattern]({{ site.baseurl }}/patterns/ask-users-for/feedback)
64-
9. [Minimal footer]({{ site.baseurl }}/components/footer/footer-minimal)
66+
9. [Footer minimal]({{ site.baseurl }}/components/footer/footer-minimal)
6567

6668
## Usage
6769

6870
### When to use this template
6971

70-
**All new forms should use this template.** The templates in Figma and in code provide good starting points for new form development. Your forms will have unique `<H1>`'s and be more accessible for users.
72+
**All new forms should use this template.** The templates in Figma and in code provide good starting points for new form development. Your form pages will have a unique `H1` and will be more accessible for users.
73+
74+
This template is for the form pages themselves. The Header minimal and Footer minimal components shouldn't be used on the form introduction page or the form confirmation page. Use the full header and footer for those pages. This allows users to log out or navigate to other parts of VA.gov.
7175

7276
### When to consider something else
7377

74-
Teams who want to migrate existing forms to this new template will gain advantages by having unique `<H1>`'s for every form page. However, it can be quite a considerable time investment because nearly every page in a form flow would need to be edited. If forms have already included `<H3>`'s on every form page, the lift will not be as large.
78+
Teams who want to migrate existing forms to this new template will gain advantages by having a unique `H1` for every form page. However, it can be quite a considerable time investment because nearly every page in a form flow would need to be edited. If forms have already included heading level 3 (`<h3>`) elements on every form page, the lift won't be as large.
7579

7680
### Instances of this template in production
7781
[Request personal records (VA Form 20-10206)](https://staging.va.gov/records/request-personal-records-form-20-10206/introduction)
7882

7983
## Structure
8084

81-
### 1. Minimal header with form title and subtitle
82-
The form step template and the review page template uses the [minimal header component]({{ site.baseurl }}/components/header/header-minimal).
85+
### 1. Header minimal with form title and subtitle
86+
The form step template and the review page template use the [Header minimal component]({{ site.baseurl }}/components/header/header-minimal).
8387

8488
Use the same plain language form title and subtitle as the form introduction and confirmation pages.
8589

8690
[Review the form introduction template for guidance and examples of a form title and subtitle.]({{ site.baseurl }}/templates/forms/introduction#structure)
8791

88-
The form title and subtitle are in the minimal header without any semantic heading structure.
92+
The form title and subtitle are in the Header minimal without any semantic heading structure.
8993

9094

9195
### 2. Back link
9296

93-
Instead of a breadcrumb, we include a back link below the minimal header in this template. The back link remains consistent across all question pages within a single form. Its text should read “Back to previous page”.
97+
Instead of a breadcrumb, we include a back link below the Header minimal in this template. The back link remains consistent across all question pages within a single form. Its text should read “Back to previous page”.
9498

9599
[Learn more about the expected behavior for the back link]({{ site.baseurl }}/components/link/#when-to-use-a-back-link).
96100

97101
We use the back link to reassure users that they can go back and change previous answers.
98102

99-
The back link should not break the browser back button. And it should take users to the previous page they were on, in the state they last saw it.
103+
The back link shouldn't break the browser back button. And it should take users to the previous page they were on, in the state they last saw it.
100104

101-
Exception: If the form submitter completes an action that they can do only once, like submit the form, the browser back button should still navigate the user to the previous page, but the user should not be able to submit the form again.
105+
Exception: If the form submitter completes an action that they can do only once, like submit the form, the browser back button should still navigate the user to the previous page, but the user shouldn't be able to submit the form again.
102106

103107

104108
### 3. Progress bar - segmented with step label
@@ -144,7 +148,7 @@ The VA Design system has a number of [components]({{ site.baseurl }}/components/
144148
* [Ask users for… phone numbers]({{ site.baseurl }}/patterns/ask-users-for/phone-numbers)
145149
* [Ask users for… relationship to Veteran]({{ site.baseurl }}/patterns/ask-users-for/relationship)
146150
* [Ask users for… signature]({{ site.baseurl }}/patterns/ask-users-for/signature)
147-
* [Ask users for ssn]({{ site.baseurl }}/patterns/ask-users-for/social-security-number)
151+
* [Ask users for… Social Security number]({{ site.baseurl }}/patterns/ask-users-for/social-security-number)
148152

149153
If you need a new component or pattern, you will need to follow the [experimental design process.]({{ site.baseurl }}/about/contributing-to-the-design-system/experimental-components-and-patterns)
150154

@@ -170,8 +174,7 @@ For complex questions, you may need to use one of these options to provide addit
170174
* Body text after the H1 page header (which can also serve as hint text for all fields on the page, and may include examples or bulleted lists)
171175
* [A Details component]({{ site.baseurl }}/components/details)
172176

173-
You can set the contents of a `<legend>` on the page as the page header (`<H1>`). But, you may not always need the h1 to be inside the legend.
174-
177+
You can set the contents of a `<legend>` on the page as the page header (`H1`). But, you may not always need the `H1` to be inside the legend.
175178

176179
#### Fieldsets & legends
177180

@@ -239,11 +242,11 @@ The feedback pattern allows VA.gov to collect feedback from users via Medallia.
239242
[Learn more about the feedback pattern]({{ site.baseurl }}/patterns/ask-users-for/feedback).
240243

241244

242-
### 12. Minimal footer
245+
### 12. Footer minimal
243246

244-
The minimal footer component strips out all of the navigation found in the full footer that is found on other VA.gov pages. This helps users stay focused on the task at hand. The VA Seal is a link to VA.gov.
247+
The Footer minimal component strips out all of the navigation found in the full footer that is found on other VA.gov pages. This helps users stay focused on the task at hand. The VA Seal is a link to VA.gov.
245248

246-
[Learn more about the minimal footer component]({{ site.baseurl }}/components/footer/footer-minimal).
249+
[Learn more about the Footer minimal component]({{ site.baseurl }}/components/footer/footer-minimal).
247250

248251

249252
## Research findings
@@ -255,4 +258,14 @@ This form page layout aims to address pain-points related to the amount of redun
255258
* For Veterans with low vision who use magnification on mobile devices, questions can be hidden below “the fold” completely
256259

257260
## Code considerations
258-
[Minimal header (minimal form flow) pattern documentation](https://github.com/department-of-veterans-affairs/vets-website/blob/main/src/platform/forms-system/src/js/patterns/minimal-header/README.md) details how to implement this variation.
261+
[Header minimal (minimal form flow) pattern documentation](https://github.com/department-of-veterans-affairs/vets-website/blob/main/src/platform/forms-system/src/js/patterns/minimal-header/README.md) details how to implement this variation.
262+
263+
## Related
264+
265+
- [Form introduction template]({{ site.baseurl }}/templates/forms/introduction)
266+
- [Form review template]({{ site.baseurl }}/templates/forms/review)
267+
- [Form confirmation template]({{ site.baseurl }}/templates/forms/confirmation)
268+
- [Progress bar - segmented component]({{ site.baseurl }}/components/form/progress-bar-segmented)
269+
- [Header minimal component]({{ site.baseurl }}/components/header/header-minimal)
270+
- [Footer minimal component]({{ site.baseurl }}/components/footer/footer-minimal)
271+
- [Ask users for a single response pattern]({{ site.baseurl }}/patterns/ask-users-for/a-single-response)

src/_templates/forms/intro.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ There are 2 versions of the intro page:
3939

4040
## Structure
4141

42+
Use the [Header]({{site.baseurl}}/components/header/) and [Footer]({{site.baseurl}}/components/footer/) components for the introduction page.
43+
4244
### Title, subtitle, and intro
4345

4446
**Plain language title**

src/_templates/forms/review.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ The Review page consists of:
3535

3636
## Structure
3737

38+
For forms that use the standard form-step template, the Review page should use the standard [Header]({{ site.baseurl }}/components/header/) and [Footer]({{ site.baseurl }}/components/footer/) components. For forms that use the minimal form-step template, the Review page should use the [Header minimal]({{ site.baseurl }}/components/header/header-minimal) and [Footer minimal]({{ site.baseurl }}/components/footer/footer-minimal) components so that the header and footer match the rest of the form flow.
39+
3840
### Page title and subtitle
3941

4042
The H1 plain language title is in the format:

0 commit comments

Comments
 (0)