Skip to content

Commit

Permalink
Merge pull request #3889 from department-of-veterans-affairs/db/add-e…
Browse files Browse the repository at this point in the history
…rror-consideration

Alert Expandable: Add error consideration
  • Loading branch information
humancompanion-usds authored Mar 7, 2025
2 parents 21d6b9d + efac981 commit f90cb48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/_components/alert/alert-expandable.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ anchors:

* **User feedback.** Use the [Alert]({{ site.baseurl }}/components/alert) component when responding to an action taken by a user such as submitting a form.
* **Clarifying background information.** Use the [Additional info]({{ site.baseurl }}/components/additional-info) component when clarifying outcomes for an input or a form question as well as providing background information. Keep in mind that Alert - Expandable should warrant an alert and be used sparingly. The value of any type of alert is diminished if the page is littered with alerts of equal weight.
* **Showing an error.** Errors should never be hidden. They should only appear as a result of a user action, and always be visible to the user. The error text should be brief and clear, eliminating the need for it to be collapsed. Consider using a standard or slim variation of [Alert]({{ site.baseurl }}/components/alert) if there is an error.

### Behavior

Expand Down

0 comments on commit f90cb48

Please sign in to comment.