Skip to content

Commit 850dba0

Browse files
committed
Fix formatting in Accessiblity
1 parent 658e772 commit 850dba0

File tree

1 file changed

+42
-55
lines changed

1 file changed

+42
-55
lines changed

contribute-docs/style-guide/accessibility.md

Lines changed: 42 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,25 @@ description: Guidelines for writing accessible and inclusive content.
77

88
These guidelines are intended for all content authors and contains common tips and tricks for writing accessible content. It is not exhaustive and does not replace the official [WCAG 2.0 guidelines](https://www.w3.org/TR/2008/REC-WCAG20-20081211/#guidelines).
99

10-
### What is accessible content
11-
1210
**Accessibility** for content means ensuring that all of our users can understand the content we publish—all of it—independently of how they choose or have to interact with it.
1311

1412
Our users and readers are diverse, with different abilities and disabilities.
1513
They also interact with our content in different ways, such as screen readers, mobile devices, and Braille. The list is long and constantly evolving.
1614

1715
As content authors, it is our responsibility to provide them with [perceivable, operable, understandable, and robust content](https://www.w3.org/TR/UNDERSTANDING-WCAG20/intro.html#introduction-fourprincs-head).
1816

19-
### Guidelines
17+
## Guidelines [accessibility-guidelines]
2018

2119
✔️ **Make your content quickly scannable.** A clear structure and meaningful words will tell users if the content is relevant to them within seconds. Use unique headings, and put the most important information first.
2220

2321
✔️ **Add alt text for all images, icons, and media files.** Screen readers, Braille output devices, and search engines love concise, accurate alt text that describes what cannot always be displayed, viewed, or heard on screen.
2422

2523
:::{dropdown} Examples
26-
✔️ **Do:**
24+
✔️ **Do:**
2725

28-
```html
29-
<img src="signup.png" alt="Signup page for Elastic Cloud" />
30-
```
26+
```md
27+
![Signup page for Elastic Cloud](signup.png)
28+
```
3129

3230
Note: Do not use special characters, such as backticks (`), in alt text. They are known to cause
3331
formatting issues when building pages.
@@ -45,32 +43,34 @@ Note: Do not use special characters, such as backticks (`), in alt text. They ar
4543
✔️ **Use parallel writing structures for similar things.** For example, don't use a combination of verbs and noun phrases to start each item in a list. Choose one or the other.
4644

4745
:::{dropdown} Examples
48-
**Don't:**
49-
* Navigate Elastic Security's various tools and interfaces.
50-
* Use Elastic Security's detection engine with custom and prebuilt rules.
51-
* System requirements, workspaces, configuration, and data ingestion.
52-
53-
✔️ **Do:**
54-
* Navigate Elastic Security's various tools and interfaces.
55-
* Use Elastic Security's detection engine with custom and prebuilt rules.
56-
* Learn about system requirements, workspaces, configuration, and data ingestion.
46+
**Don't:**
47+
48+
* Navigate Elastic Security's various tools and interfaces.
49+
* Use Elastic Security's detection engine with custom and prebuilt rules.
50+
* System requirements, workspaces, configuration, and data ingestion.
51+
52+
✔️ **Do:**
53+
54+
* Navigate Elastic Security's various tools and interfaces.
55+
* Use Elastic Security's detection engine with custom and prebuilt rules.
56+
* Learn about system requirements, workspaces, configuration, and data ingestion.
5757

5858
:::
5959

6060
✔️ **Use meaningful link text.** Descriptive text instead of "click here", "read more", or even a raw URL for a link makes it easier for users to understand what to expect when they open it. Screen
6161
readers jump between links by generating a list of them, and spell out URLs.
6262
:::{dropdown} Examples
63-
**Don't:** "[Click here](https://www.elastic.co) and make search your best ally."
64-
65-
✔️ **Do:** "Visit [Elastic.co](https://www.elastic.co) and make search your best ally."
63+
**Don't:** "[Click here](https://www.elastic.co) and make search your best ally."
64+
65+
✔️ **Do:** "Visit [Elastic.co](https://www.elastic.co) and make search your best ally."
6666

6767
:::
6868

6969
✔️ **Use device-agnostic language when possible.** Users can access content and products in many ways. We do not know if they use a mouse, keyboard, tablet, or another device.
7070
:::{dropdown} Examples
71-
**Don't:** "Enter a description and click the **Next** button."
72-
73-
✔️ **Do:** "Enter a description and select **Next**."
71+
**Don't:** "Enter a description and click the **Next** button."
72+
73+
✔️ **Do:** "Enter a description and select **Next**."
7474

7575
:::
7676

@@ -84,7 +84,7 @@ readers jump between links by generating a list of them, and spell out URLs.
8484

8585
:::
8686

87-
### Terms
87+
## Terms
8888

8989
| Avoid | Use instead |
9090
| ----- | ----------- |
@@ -94,8 +94,7 @@ readers jump between links by generating a list of them, and spell out URLs.
9494
| See | Check, refer to |
9595
| Hear (hear about) | Learn |
9696

97-
98-
### Testing content for accessibility
97+
## Testing content for accessibility
9998

10099
Test as early and often as possible. It is always a good exercise to spot improvements early and develop good habits.
101100
Here are a few methods that you can use to test content:
@@ -110,17 +109,12 @@ your website using mobile devices, and when doing so, be sure to check for acces
110109
You don't need an actual phone to do this. The Chrome dev tools, for example, are a precious ally to test various layouts.
111110

112111
**Try a screen reader** to understand how users navigate websites using one of the screen
113-
reader/browser combinations listed in the
114-
<DocLink
115-
id="techWritingGuidelinesAccessibility"
116-
section="assistive-technologies"
117-
text="Assistive technologies"
118-
/> section.
112+
reader/browser combinations listed in the [Assistive technologies](#assistive-technologies) section.
119113

120114
**Turn off speakers and microphones** to ensure the website experience is the same with
121115
or without sound.
122116

123-
#### Assistive technologies
117+
## Assistive technologies
124118

125119
Assistive technology allows individuals with disabilities to access
126120
information technology and perform functions that might be otherwise impossible, like
@@ -142,14 +136,12 @@ users with motor control difficulties.
142136
These guidelines are intended for all content authors, whether you are a developer, designer, or writer.
143137
This page is not exhaustive but provides some guidelines to write inclusive content for product content and technical documentation.
144138

145-
### What is inclusive content, and why does it matter?
139+
**Inclusivity** for content means ensuring that the content we provide reflects the diversity of our community, respects it, and promotes positive change.
146140

147-
**Inclusivity** for content means ensuring that the content we provide reflects the diversity of our community, respects it, and promotes positive change.
141+
### Guidelines [inclusivity-guidelines]
148142

149-
### Guidelines
143+
### Write for an international audience
150144

151-
#### Write for an international audience
152-
153145
Our products and documentation use American English (en_US) as a standard for written content.
154146
Yet they are used and read by people all around the globe, for whom English is not always their primary language.
155147
Our content must take that into account.
@@ -159,26 +151,20 @@ Our content must take that into account.
159151

160152
* **Short sentences**: They leave less space for interpretation. They are easier to scan, read, and translate.
161153

162-
* **Plain language**: Active voice, present tense, using examples, and so on.
163-
Some of these guidelines might already look familiar. Several countries have
164-
[plain language initiatives](https://www.plainlanguage.gov/guidelines/) to
165-
promote clearer communication. Do your
166-
best to embrace these guidelines and focus on the message. We’re not going for
167-
Scrabble high scores, and no one is carrying a thesaurus to read our docs.
154+
* **Plain language**: Active voice, present tense, using examples, and so on.
155+
Some of these guidelines might already look familiar. Several countries have [plain language initiatives](https://www.plainlanguage.gov/guidelines/) to promote clearer communication.
156+
Do your best to embrace these guidelines and focus on the message.
157+
We’re not going for Scrabble high scores, and no one is carrying a thesaurus to read our docs.
168158
Well, maybe the writers...
169159

170-
* **Negation**: It is generally easier for everyone to say what something IS
171-
versus what it is NOT. When you add a negative construction, it takes the
172-
reader longer to parse the meaning of the phrase. Instead of saying, "You
173-
cannot access the content without signing up", it's much easier to
174-
read, "Sign up to access the content."
160+
* **Negation**: It is generally easier for everyone to say what something IS versus what it is NOT.
161+
When you add a negative construction, it takes the reader longer to parse the meaning of the phrase.
162+
Instead of saying, "You cannot access the content without signing up", it's much easier to read, "Sign up to access the content."
175163

176164
* **Words with multiple meanings**:
177-
Don't skip helper words if they make the sentence clearer or easier to read.
178-
We try to be as literal and unambiguous as possible in our docs to ensure that
179-
our readers from around the globe can consume them. One way to
180-
achieve that is to choose words with fewer meanings, especially when a
181-
word's intended meaning is not its primary meaning.
165+
Don't skip helper words if they make the sentence clearer or easier to read.
166+
We try to be as literal and unambiguous as possible in our docs to ensure that our readers from around the globe can consume them.
167+
One way to achieve that is to choose words with fewer meanings, especially when a word's intended meaning is not its primary meaning.
182168

183169
:::{dropdown} Example
184170
You may have noticed the rather poetic use of _consume_ in the
@@ -199,7 +185,8 @@ Our content must take that into account.
199185
:::
200186

201187
✔️ **Be aware of differences and diversity in content and examples.**
202-
Different people are used to different names, currencies, date and time formats, different measurement units (such as for temperature, distance, speed), and so much more.
188+
Different people are used to different names, currencies, date and time formats, different measurement units (such as for temperature, distance, speed), and so much more.
189+
203190
* Avoid ambiguous values, like `04/05/06` for a date. Is it May 4 or April 5, and which year? `11/17/1987` leaves less room for interpretation if the exact format is not specified nearby.
204191
* If there is no obvious example standard (RFC) to follow, try to be diverse to represent our audience.
205192

@@ -239,7 +226,7 @@ Writing gender-neutral mainly consists of avoiding gender bias and word choices
239226
✔️ **Pronouns.** In technical documentation, you can avoid this most of the time by addressing users directly.
240227
When it's not possible, use *they*/*their*, even for singular. There's more than one gender, and it's not binary, either.
241228

242-
✔️ **Biased words and expressions.** Guys, mankind, policeman...these are all words we use and are used to hearing. But the default is not male.
229+
✔️ **Biased words and expressions.** Guys, mankind, policeman...these are all words we use and are used to hearing. But the default is not male.
243230
Most expressions and words that perpetuate this bias (that exists in many cultures and languages!) can be replaced with neutral alternatives or synonyms: Folks, humanity, police officer...
244231

245232
#### Avoid violent, offensive, ableist terminology

0 commit comments

Comments
 (0)