You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/_components/buttons.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -70,11 +70,12 @@ Only `<button>` elements can be disabled with a `disabled` attribute. To make a
70
70
* Style the button most users should click in a way that distinguishes from other buttons on the page. Try using the “large button” or the most visually distinct fill color.
71
71
* Make sure buttons should look clickable—use color variations to distinguish static, hover and active states.
72
72
* Avoid using too many buttons on a page.
73
+
* Reserve chevrons in buttons for "Back" and "Continue" buttons only
73
74
* Use sentence case for button labels.
74
-
* Button labels should be as short as possible with “trigger words” that your users will recognize to clearly explain what will happen when the button is clicked (for example, “download,” “view” or “sign up”).
75
+
*Keep the character limit for button labels to 35 characters. Button labels should be as short as possible with “trigger words” that your users will recognize to clearly explain what will happen when the button is clicked (for example, “download,” “view” or “sign up”).
75
76
* Make the first word of the button’s label a verb. For example, instead of “Complaint Filing” label the button “File a complaint.”
76
77
* At times, consider adding an icon to signal specific actions (“download”, “open in a new window”, etc).
77
-
* Read more about writing for buttons in the [content style guide](../content-style-guide/buttons.html)
78
+
* Read more about writing for buttons in the [content style guide](https://design.va.gov/content-style-guide/button-labels)
78
79
79
80
### When to use
80
81
@@ -92,5 +93,5 @@ Only `<button>` elements can be disabled with a `disabled` attribute. To make a
92
93
* Buttons should display a visible focus state when users tab to them.
93
94
* Avoid using `<div>` or `<img>` tags to create buttons. Screen readers don't automatically know either is a usable button.
94
95
* When styling links to look like buttons, remember that screen readers handle links slightly differently than they do buttons. Pressing the Space key triggers a button, but pressing the Enter key triggers a link.
95
-
96
+
* Include more contextual information in the button label for screen readers. You can use an aria label to specify form numbers or program names in the buttons for greater context. Example: A button label could say "Apply for caregiver assistance" and the button label for screen readers can say, `<button>Apply for <span class="sr only"the program of comprehensive</span> caregiver assistance</button>`
0 commit comments