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: packages/styleguide/src/lib/UX Writing/Component guidelines/Buttons.mdx
+18-26Lines changed: 18 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,36 +17,28 @@ export const parameters = {
17
17
18
18
<AboutHeader{...parameters} />
19
19
20
-
Buttons enable our learners to "speak" to us. They click to tell us what they want (i.e. to "Start my free trial" or to "Resume learning") and we respond with the anticipated next step.
20
+
Buttons enable our learners to "speak" to us. They select buttons to tell us what they want (for example, to **Try pro for free**or to **Resume learning**), and we respond with the anticipated next step.
21
21
22
22
## Best practices
23
23
24
-
When approaching writing buttons — whether they're text buttons, fill buttons, or call-to-action buttons — here are a few things to keep in mind:
25
-
26
-
-**Be specific.** People should know exactly what they're getting when they click on a button. If a button leaves you questioning what will happen when you click on it, adjust the copy to make it more clear. Specificity also plays a big role in ensuring accessibility for learners navigating our content with screen readers.
27
-
-**Use action-oriented language.** Start with an action-oriented verb rather than simply listing where the button will take you (i.e. Use "Take the quiz" instead of "Language quiz").
28
-
-**Emphasize the value people get, rather than how they get it.** When relevant, focus on the benefit/what people are receiving instead of the way they are receiving it. For instance, instead of "Download for free" try "Get the free guide."
24
+
When approaching writing buttons — whether they're text buttons, fill buttons, or call-to-action buttons — here are some things to keep in mind:
25
+
26
+
-**Be specific.** People should know exactly what they're getting or what happens next when they select a button. If a button leaves you unsure, adjust the copy to make it more clear. Specificity also plays a big role in ensuring accessibility for learners navigating our content with screen readers.
27
+
-**Use action-oriented language.** Start with an action-oriented verb rather than simply listing where the button will take you.\
28
+
Example: use **Take the quiz** instead of "Language quiz"
29
+
-**Emphasize the value people get**, rather than how they get it.\
30
+
Example: **Try Pro for free** instead of "Opt in"
31
+
-**Use the established system patterns** for navigational and purely functional buttons.\
32
+
Examples: **Next**, **Back**, **Close**
33
+
-**Use the same word to refer to the same thing** to foster trust and prioritize clarity.\
34
+
Examples: **Go to payment**, **Complete payment**, **Cancel payment**
35
+
-**Avoid using pronouns**, on the actual button because in the micro-interaction, the speaker can be either Codecademy or the learner.\
36
+
Example: **Go to dashboard,** not "Go to your dashboard" or "Go to my dashboard"
29
37
-**When in doubt, A/B test!** Buttons — specifically call-to-action (CTA) button copy can have a major impact on conversion. If you're undecided about which CTA is best, test — especially for high-impact projects.
30
38
31
-
### Fill buttons
32
-
33
-
-**Length:** Keep to a maximum of 3 words (unless more words are necessary for clarity).
34
-
-**Capitalization:** Use sentence case, capitalizing only proper nouns.
35
-
36
-
### Text buttons
37
-
38
-
-**Length:** Keep to a maximum of 3 words (unless more words are necessary for clarity).
39
-
-**Capitalization:** Use sentence case, capitalizing only proper nouns.
40
-
-**Arrow usage:** Include → after the text when clicking brings users to a new surface. There should always be a space between the text and the arrow.
41
-
42
-
### CTA buttons
43
-
44
-
-**Length:** Keep to a maximum of 3 words (unless more words are necessary for clarity).
45
-
-**Capitalization:** Use sentence case, capitalizing only proper nouns.
46
-
47
-
## Checklist
39
+
## Checklist for writing button labels
48
40
49
-
- For buttons, is your copy 3 words or less?
50
-
- For buttons, have you used action-oriented language?
51
-
- Have you used sentence case, only capitalizing proper nouns?
52
41
- Does the copy make it clear where the button will take learners?
42
+
- Does the button lead with an actionable verb?
43
+
- Is the microcopy 3 words or less (especially for the primary button)?
44
+
- Have you used sentence case, only capitalizing [proper nouns in the **Codecademy glossary**](https://skillsoftdev.atlassian.net/wiki/spaces/UXW/database/4447175693?savedViewId=9b4c57a9-0cfb-42b0-97c5-08a87e8a2c84)?
0 commit comments