Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefill pattern - add alerts with links to the 2 pages related to prefill #3491

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/_components/form/prefill.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ anchors:
- anchor: Content considerations
---

<va-alert
status="warning"
slim
>
<div class="vads-u-margin-y--0">
<p class="vads-u-margin-y--0">
We may be replacing this page soon. <va-link href="/patterns/help-users-to/know-when-their-information-is-prefilled" text="See the new prefill pattern page for up-to-date guidance." ></va-link>
</p>
</div>
</va-alert>
## Examples

### Intro
Expand All @@ -23,7 +34,7 @@ anchors:
{% include_relative html/prefill-intro.html %}
</div>

### Step
### Step

<div class="site-showcase">
{% include_relative html/prefill-step.html %}
Expand All @@ -42,7 +53,7 @@ anchors:
### How this component works

* **Intro variation uses Alert - Informational.** The Intro variation of this component is an instance of the [Alert - Informational]({{ site.baseurl }}/components/alert#informational-alert) component, but without a header.
* **Step variation uses Alert - Background-only Informational.** The Step variations of this component is an instance of the [Alert - Background-only with icon - Informational]({{ site.baseurl }}/components/alert#background-color-only-alert-with-icon) component.
* **Step variation uses Alert - Background-only Informational.** The Step variations of this component is an instance of the [Alert - Background-only with icon - Informational]({{ site.baseurl }}/components/alert#background-color-only-alert-with-icon) component.

### Placement

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ anchors:
- anchor: Research findings
---

<va-alert
status="warning"
slim
>
<div class="vads-u-margin-y--0">
<p class="vads-u-margin-y--0">
We are updating this pattern. Please note that some guidance may be out of date. <va-link href="/patterns/help-users-to/know-when-their-information-is-prefilled" text="See the new prefill pattern page for up-to-date guidance." ></va-link>
</p>
</div>
</va-alert>
## Usage

### When to use this pattern
Expand All @@ -25,7 +36,7 @@ anchors:

### When not to use this pattern

* **When an update in this form will not update their VA.gov profile.** If a contact information addition or change will **not** update the user's VA.gov profile then use the text "*Any updates you make here to your [type of contact information] will only apply to this application.*"
* **When an update in this form will not update their VA.gov profile.** If a contact information addition or change will **not** update the user's VA.gov profile then use the text "*Any updates you make here to your [type of contact information] will only apply to this application.*"

### When to use caution

Expand All @@ -47,7 +58,7 @@ However, some forms show a set of data taken from VA.gov profile and display the

* In this example, at the start of the Request a Board Appeal process, the user is shown information that we have on file but that cannot be changed in this application. A note below the information calls out how to get the information updated.

#### Communicate information that can be edited
#### Communicate information that can be edited

{% include component-example.html alt="Contact information from the Request a Board Appeal application." file="/images/patterns/help-users-to/know-how-their-information-is-updated/board-appeal-contact-information.png" caption="The user is shown contact information stored in their profile that can be edited before continuing with the process." width="50%" %}

Expand Down
Loading