Skip to content

Commit dcc9fe8

Browse files
authored
docs(capitalization): Updates capitalization guidelines for better consistency and clarity. (#3855)
* docs(capitalization): Updates guidance for capitalization. * Continues editing content. * Content updates progress. * Updates content and images. * Content and image updates. * Final content and image updates. * Updates recs per content team decision.
1 parent f455e17 commit dcc9fe8

11 files changed

Lines changed: 43 additions & 47 deletions

File tree

packages/documentation-framework/templates/mdx.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@
6868
table-layout: fixed;
6969
width: 100%;
7070
}
71+
72+
.ws-image {
73+
text-align: center;
74+
width: "600px";
75+
}
76+
7177
.ws-table td > code,
7278
.ws-table th > code,
7379
.ws-table tr > code {

packages/documentation-site/patternfly-docs/content/design-guidelines/content/capitalization.md

Lines changed: 37 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,79 +3,69 @@ id: Capitalization
33
section: UX writing
44
---
55

6-
Consistent capitalization adds clarity and creates unity across your products' UIs.
6+
# Capitalization guidelines
77

8-
## Capitalization types
8+
Consistent capitalization adds clarity and creates unity across product UIs. PatternFly recommends writing in sentence case for all titles, headings, subtitles, or subheadings. **Sentence case** capitalizes only the first letter of the first word. The only exceptions to this are proper nouns, product names, acronyms, and initialisms, all of which should be capitalized.
99

10-
We recommend using title and sentence case as appropriate:
10+
For example: “When you use PatternFly’s design resources, you get helpful tips and best practices.”
1111

12-
- **Title case** capitalizes only the first letter of each word in a sentence, except for smaller words with fewer than four letters, like articles and conjunctions.
12+
**Above all else, your main goal should be consistency.** You may need to use different capitalization standards depending on what you're designing, but be sure to keep the capitalization within your product area consistent.
1313

14-
- For example: "PatternFly Design Resources with Tips and Best Practices."
14+
## Red Hat product UIs
1515

16-
- **Note:** Hyperlinked articles in a UI are not displayed as titles. Instead, the copy typically reads something like, "Learn more about [tool name]."
16+
When you write for a product, make sure you adhere to the following capitalization patterns.
1717

18-
- **Sentence case** only capitalizes the first letter of the first word in a title, heading, subtitle, or subheading except for proper nouns, product names, acronyms, and initialisms.
19-
20-
- For example: “PatternFly’s design resources with tips and best practices.”
18+
- Default to sentence case across all UI elements, including navigation items, page titles, buttons, and so on.
2119

22-
## Capitalization across PatternFly
20+
<div class="ws-image"> <img src="./img/navigation-capitalization.png" alt="A side navigation menu, expanded to show capitalization styles." width="600px"/></div>
2321

24-
Follow these guidelines for PatternFly content, including documentation, UX copy, blog articles, and more.
22+
- Keep capitalization for custom resources the same as the capitalization style used during creation.
23+
- For example, if a custom resource name was created with all lowercase letters, don't change any of the letters to uppercase when referencing this resource.
24+
- Capitalize product feature names when they’re used as proper nouns or when they refer to a capitalized UI term (like a navigation item). Write them in lowercase when they’re used to describe generic concepts. For example:
2525

26-
- Use **sentence case** for page titles, menu items, navigation items, headings, subtitles, and subheadings.
26+
<div class="ws-content-table">
2727

28-
- For example, on PatternFly's website, all navigation items, button text, and headings are written in sentence case:
28+
| **Feature name** | **UI text** | **Reasoning** |
29+
|------------------|--------------|------------------|
30+
| Compliance | “Check your system **compliance** using Red Hat Insights **Compliance**.” | The first “compliance” is lowercase since it refers to a concept. The second “compliance” refers to a specific feature offered on cloud.redhat.com, so it is capitalized. |
31+
| Sources | “Add a *source* by going to **Settings > *Sources*.**” "Check the *Sources* table for status."<br /><br />Button text: "Add *source*" | “Sources” is only capitalized when it directly refers to a subsection, feature, or location in the UI. "Source" is lowercase in the button text because button labels should always be in sentence case. |
32+
</div>
2933

30-
<img src="./img/patternfly-sentence-case.png" alt="PatternFly website screenshot showing sentence case copy" width="3330px"/>
34+
### Capitalization in breadcrumb trails
3135

32-
- **Capitalize** proper nouns, product names, acronyms, and initialisms.
33-
34-
- **Note**: “React” is always capitalized, even when referring to a component (such as “React component”). It’s the official name of a JavaScript library, and it’s written as a proper noun across the <a href="https://reactjs.org/">react.js org site</a>.
36+
It is common for page titles to appear as an item in a breadcrumb trail. Match the capitalization of the original page title in the corresponding breadcrumb item even when the item does not use sentence case, or when a breadcrumb trail contains mixed capitalization standards.
3537

36-
- Write all components in **lowercase** unless they start a sentence.
37-
38-
- For example, "Card, button, and banner components are my favorites."
38+
<div class="ws-image"> <img src="./img/basic-breadcrumb.png" alt="A breadcrumb trail with mixed capitalization styles due to page title formatting." width="600"/> </div>
3939

40-
## Capitalization across Red Hat UIs
40+
Sometimes, user-named items will appear in a breadcrumb trail. If a custom resource name (for example, "customResource-name") is included in the breadcrumb trail, you should match the capitalization of the users' original entry.
4141

42-
Similar to PatternFly, sentence case is the standard across Red Hat products. However, capitalization varies depending on each product area's context.
42+
<p class="ws-image"> <img src="./img/breadcrumb-custom-item.png" alt="A breadcrumb trail with mixed capitalization styles due to custom resource naming." width="600"/></p>
4343

44-
Keep in mind that your main goal should be consistency. You may need to use different capitalization standards depending on what you're designing, but be sure to keep the capitalization within your product area consistent.
44+
### Tools outside your product portfolio
4545

46-
In general, follow these guidelines:
46+
If you’re referencing tools that aren't part of your company’s product portfolio, write the product names as they appear in the respective company’s documentation.
4747

48-
- **Capitalize** proper nouns, acronyms, initialisms, product names, services, and features.
49-
- Keep capitalization for custom resources the same as the capitalization used during creation. For example, if a custom resource was created in all lowercase letters, don't change any of the letters to uppercase.
50-
- Capitalize **Red Hat feature names** when they’re used as proper nouns or when they refer to a capitalized UI term (like a navigation item). Write them in lowercase when they’re used to describe generic concepts. For more specifics, reference the following table:
51-
52-
<div class="ws-content-table">
48+
For example, if you’re referencing a product in Amazon Web Services that Amazon capitalizes, then you should also capitalize it in your writing.
5349

54-
| **Feature name** | **UI text** | **Reasoning** |
55-
|------------------|--------------|------------------|
56-
| Compliance | “Check your system compliance using Red Hat Insights Compliance.” | The first “compliance” is lowercase since it refers to compliance as a concept. The second “compliance” refers to a specific feature offered on cloud.redhat.com, so it is capitalized. |
57-
| User Access | “Manage user access for your organization using the User Access feature.” | The first “user access” is lowercase because it refers to user access as a concept. The second “user access” is capitalized because it refers to the User Access feature offered on cloud.redhat.com. |
58-
| Sources | “Add a source by going to **Settings > Sources.**” "Check the **Sources** table for status."<br /><br />Button text: "Add source" | “Sources” is only capitalized when it directly refers to a subsection, feature, or location in the UI. Always write buttons in sentence case. |
59-
60-
</div>
50+
## PatternFly website documentation
6151

62-
A UI that adheres to these guidelines may resemble the following image:
52+
There are additional capitalization guidelines that you should follow if you contribute to any PatternFly content, like documentation or microcopy.
6353

64-
<img src="./img/user-menu-example.png" alt="title case navigation items and sentence case menu items" width="3330px"/>
54+
- Use sentence case for page titles, menu items, navigation items, headings, subtitles, and subheadings.
6555

66-
1. **Navigation**: Navigation items are in title case.
67-
1. **Menu**: Menu items are in sentence case.
56+
- Capitalize proper nouns, product names, acronyms, and initialisms. For example: React, PatternFly, and HTML.
6857

69-
## Capitalization in breadcrumb trails
58+
Take the PatternFly website as an example, where all navigation items, button text, and headings are written in sentence case and all proper nouns are in title case:
7059

71-
Usually, page titles appear in a breadcrumb trail. If all page titles are in title case then they should also appear in title case in the breadcrumb trail. If all page titles are in sentence case, they should also appear in sentence case in the breadcrumb trail.
60+
<div class="ws-image"><img src="./img/pf-home-caps.png" alt="A PatternFly website screenshot showing sentence case copy." width="700"/>
61+
</div>
7262

73-
However, breadcrumb trails aren’t limited to page titles alone. If a name entered by a user (such as “vagrant-host”) is included in the breadcrumb trail, then use the same case that the name appears in.
63+
- Write all components in lowercase unless they start a sentence.
7464

75-
For example, this may look like: *Rules* > *Systems* > *System Tool* > *vagrant-host*
65+
- Format any code snippets according to the standards used for their language.
7666

77-
## Capitalization for tools outside your product portfolio
67+
For example, the following image from our component documentation uses lowercase for the component name ("card") and capitalizes code appropriately ("isCompact" and "isLarge").
7868

79-
If you’re referencing tools outside your company’s product portfolio, write the product names as they appear in the respective company’s documentation.
69+
<div class="ws-image"><img src="./img/component-docs.png" alt="Component documentation showing sentence case copy and capitalization styling for code." width="700"/>
70+
</div>
8071

81-
For example, if you’re referencing a product in Amazon Web Services and Amazon capitalizes it, you should also capitalize it in your writing.
369 KB
Loading
20.9 KB
Loading
24.2 KB
Loading
543 KB
Loading
98.2 KB
Loading
148 KB
Loading
147 KB
Loading

0 commit comments

Comments
 (0)