Skip to content

Commit 9698a8b

Browse files
authored
Updates to Accessibility topic (Design) (SharePoint#1523)
* Add accessibility image; update doc * Added See also to parent topic * Updated theme/neutral image and added HTML table * Image with headings * Added image with headers * Updated comment
1 parent fed95f9 commit 9698a8b

17 files changed

+35
-83
lines changed

docs/design/accessibility.md

Lines changed: 35 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,40 @@
11
---
22
title: Accessibility in SharePoint web part design
33
description: Guidelines for adding accessibility to your web part.
4-
ms.date: 01/23/2018
4+
ms.date: 03/23/2018
55
---
66

7-
<!--Based on how rough this content is in its current state, i'm going to pull it from this initial release so we can edit and better prepare. -->
8-
97
# Accessibility in SharePoint web part design
108

11-
Developing an equal experience that meets all users' unique visual, hearing, dexterity, cognitive, and speech needs is an important component of SharePoint web part design. Accessible design applies not only to people with disabilities, but also to potential situational impairments. Accessible design is good design.
9+
Developing an experience that meets all users' unique visual, hearing, dexterity, cognitive, and speech needs is an important component of SharePoint web part design. Accessible design applies not only to people with disabilities, but also to potential situational impairments. Accessible design is good design.
1210

1311
## Accessibility guidelines
1412

15-
<!-- Make sure that this is an external resource that folks can access. Original link was to a OneNote file. -->
16-
All Microsoft products must meet the requirements listed in the [Microsoft Accessibility Standards](https://docs.microsoft.com/en-us/windows/uwp/design/accessibility/accessibility-checklist).
13+
All Microsoft products must meet the requirements listed in the [Microsoft Accessibility Standards](https://www.microsoft.com/en-us/accessibility).
1714

18-
<!-- Fabric components are not designed to be accessible already? And, shouldn't components that aren't based on Fabric also be accessible? -->
15+
## Making web parts accessible
1916

20-
If you're building a dialog box, file picker, or any other [Office UI Fabric](https://developer.microsoft.com/en-us/fabric#/components) component, follow the guidance in this article to ensure that your content is accessible.
17+
The SharePoint Framework provides a structure to help make all web parts accessible. The web part container provides keyboard navigation defaults for the web part toolbar to edit, move, and delete the web part, a method to select the web part, and a keyboard short cut (Ctrl+P) to open the property pane. However, you still need to specify additional keyboard and screen reader navigation for the other aspects of the UI in the web part and in the property pane.
2118

22-
<!-- Not sure why we have that link? It currently goes to the OneNote file. Where is the Common UI Controls content? Is that related to accessibility? [v-licapu] - I agree; we shouldn't be linking to this unless it's live to external audiences; even I can't access it. I moved it to within the comment:
23-
[Common UI Controls](https://microsoft.sharepoint.com/teams/STS/_layouts/OneNote.aspx?id=%2Fteams%2FSTS%2FShared%20Documents%2FSP%20Accessibility%2FAccessibility%20Guidance&wd=target%28Accessibility%20101.one%7C0005C142-938C-4411-B543-B9F4199E19B3%2FEverything%20you%20need%20to%20know%20about%20Accessibility%7CE099AFE3-8804-4E1F-BA50-99493AB8A3D0%2F%29 "Link to Common UI Controls") -->
19+
In addition, many [Office UI Fabric components](https://developer.microsoft.com/en-us/fabric#/components) have built-in support for accessibility options, to make it quick to configure keyboard and screen reader navigation when you use the components in a web part.
2420

25-
## Accessibility testing
21+
The following image shows keyboard navigation on a web part.
22+
23+
![Image that shows keyboard navigation on a web part](../images/accessibility-illustration-01.png)
2624

27-
<!-- FYI, I added links. Can we assume that our target audience uses the Edge browser? -->
25+
## Accessibility testing
2826

2927
Test your web part first with [Narrator](https://support.microsoft.com/en-us/help/22798/windows-10-narrator-get-started) and Microsoft Edge, and then verify the accessibility experience with [JAWS](http://www.freedomscientific.com/Products/Blindness/JAWS).
3028

31-
Narrator and Microsoft Edge are standards-compliant. When you test with that combination, you are more likely to find issues, and you can validate that your site meets accessibility standards.
29+
Narrator and Microsoft Edge are standards compliant. When you test with that combination, you are more likely to find issues, and you can validate that your site meets accessibility standards.
3230

33-
JAWS is the market leader in screen readers. JAWS includes features that can improve the accessibility of some websites that aren't as accessible in other screen readers. Therefore testing in JAWS might not ensure that your site meets all accessibility requirements.
31+
JAWS is the market leader in screen readers. JAWS includes features that can improve the accessibility of some websites that aren't as accessible in other screen readers. Therefore, testing in JAWS might not ensure that your site meets all accessibility requirements.
3432

3533
You might also want to test for whatever combination of browser and screen reader has the greatest market share for your website.
3634

37-
<!-- Delete? This doesn't seem like text that should be in externally published docs?
38-
When suppliers test with JAWS, we ask them to repro identified bugs with Narrator and Edge. In the case a bug does not repro with Narrator/Edge it is sent to Mary Smith who works with VFO for a Jaws specific fix.
39-
-->
40-
4135
## Keyboard navigation
4236

43-
<!-- Is this section telling people how to navigate via a keyboard, or how to design to optimize for keyboard navigation? If the former, . -->
44-
45-
For some users, navigating a site via keyboard is more accessible. Power users also often rely on keyboard navigation. Use keyboard shortcuts such as tabs to go controls on the page, and use arrow keys to navigate inside controls.
37+
For some users, navigating a site via keyboard is more accessible. Power users also often rely on keyboard navigation. Make sure to design keyboard shortcuts such as tabs to go to controls on the page, and use arrow keys to navigate inside controls.
4638

4739
### Navigation between controls
4840

@@ -59,61 +51,43 @@ The first tab is the list item.
5951
The second tab is the command.
6052
The third tab is the navigation.
6153
-->
62-
63-
64-
![Image that shows the tab stops on a SharePoint page](https://i.imgur.com/Vn3VosN.png)
65-
66-
<br/>
54+
![Image that shows the tab stops on a SharePoint page](../images/accessibility-illustration-04.png)
6755

6856
### Navigation within a control
6957

7058
You can use arrow keys to move to items in a control, such as choices in a menu, commands in a command bar, or items in a list.
7159

72-
<!-- This image is not very clear. Do you need to have the "blank" list box on the left? -->
73-
74-
![Using arrow keys to navigate within a control](https://i.imgur.com/vF0Nk73.png)
75-
76-
<br/>
60+
![Using arrow keys to navigate within a control](../images/accessibility-illustration-05.png)
7761

7862
### Selecting the current item
7963

8064
Use the space bar to select or deselect the item currently in focus in a control.
8165

82-
![Using the space bar to select an item in a list](https://i.imgur.com/j3fBKPl.png)
83-
84-
<br/>
66+
![Using the space bar to select an item in a list](../images/accessibility-illustration-06.png)
8567

8668
### Run a control
8769

88-
Select Enter or the return key to run a control.
89-
90-
![Press enter to run a control](https://i.imgur.com/s0nMPdT.png)
70+
Press **Enter** or the return key to run a control.
9171

92-
<br/>
72+
![Press enter to run a control](../images/accessibility-illustration-07.png)
9373

9474
### Leave a control
9575

96-
Select **Escape** to exit a control and return to the container.
76+
Press **Escape** to exit a control and return to the container.
9777

98-
![Selecting Escape to leave a control and return to the container](https://i.imgur.com/uD99zIX.png)
99-
100-
<br/>
78+
![Pressing Escape to leave a control and return to the container](../images/accessibility-illustration-08.png)
10179

10280
### Go to the first or last item
10381

104-
Select **Home** or **End** to go directly to the first or last item in a list, menu, and so on.
82+
Press **Home** or **End** to go directly to the first or last item in a list, menu, and so on.
10583

106-
![Selecting Home or End to go to the first or last item in a list](https://i.imgur.com/gGKsh74.png)
107-
108-
<br/>
84+
![Pressing Home or End to go to the first or last item in a list](../images/accessibility-illustration-09.png)
10985

11086
## Screen reader navigation
11187

112-
Users who have vision impairments rely on screen readers to navigate the site UI.
113-
114-
<!-- Narrator isn't a third-party product. This image needs more text/explanation; please also clarify the alt text. Is this section important, or can it be removed, given the previous mention of testing with Narrator and JAWS? Again, the intent/target audience for this information isn't clear - is it for the user, or the designer? Can you explain why this information is important from the designer's POV? -->
88+
Users who have vision impairments rely on screen readers to navigate the site UI. When designing a web part, follow this example when thinking about keyboard navigation and how the screen reader conveys important actions or information to the user.
11589

116-
![Screen reader navigation of a SharePoint page](https://i.imgur.com/ar23o3X.png)
90+
![Screen reader navigation of a SharePoint page](../images/accessibility-illustration-10.png)
11791

11892
## Alt text and transcripts
11993

@@ -127,17 +101,20 @@ To be fully compliant with accessibility standards, include alt text and a compl
127101

128102
A minimum level of contrast is essential to help users with vision impairments consume the content on the page. It is also important to aid readability in low light and glare situations.
129103

130-
<!--Original image ![Neutral, Theme, and Alert colors for minimum readable contrast](https://i.imgur.com/L7pSF1w.png)-->
104+
The following image shows theme colors on the left and neutral colors on the right.
131105

132-
![Colors for minimum readable contrast](../images/wcag-2aa-compliance-colors.png)
106+
![Neutral and Theme colors for minimum readable contrast](../images/themes-colors-blue-neutral-theme-2.png)
133107

134-
### Theme colors (blue) with neutral colors, followed by alert colors
135-
136-
![Theme colors (blue) with neutral colors and alert colors](../images/accessibility-blue-theme-and-alert-colors.png)
108+
<!--I replaced this image because it doesn't even make sense; the text to the right of each box does not match what's in the box, and none are labeled "theme."
109+
![Neutral and Theme colors for minimum readable contrast](../images/accessibility-illustration-12.png)-->
137110

138111
<br/>
139112

140113
<table>
114+
<tr>
115+
<th>Theme colors</th>
116+
<th>Neutral colors</th>
117+
</tr>
141118
<tr>
142119
<td style="color:white; background-color:#004578">themeDarker: #004578</td>
143120
<td style="color:white; background-color:#000000">black: #000000</td>
@@ -184,43 +161,18 @@ A minimum level of contrast is essential to help users with vision impairments c
184161

185162
<br/>
186163

187-
<table>
188-
<tr>
189-
<td style="color:white; background-color:#952226">themeDark: #952226</td>
190-
</tr>
191-
<tr>
192-
<td style="color:black; background-color:#f6d6d8">themeLight: #f6d6d8</td>
193-
</tr>
194-
<tr>
195-
<td style="color:white; background-color:#e55c12">themeSecondary: #e55c12</td>
196-
</tr>
197-
</table>
198-
199-
<br/>
200-
201-
<table>
202-
<tr>
203-
<td style="color:white; background-color:#0f7c39">themeDarkAlt: #0f7c39</td>
204-
</tr>
205-
<tr>
206-
<td style="color:black; background-color:#bff7d5">themeLight: #bff7d5</td>
207-
</tr>
208-
</table>
209-
210164

211165
## High contrast
212166

213-
Use high contrast colors as a guide for color choices for components and states on the web. Windows computers only have the ability to detect whether a PC is running high contrast, or high contrast white. For this reason, use the default high contrast black setting for any high contrast, non-white theme.
167+
Use high contrast colors as a guide for color choices for components and states on the web. Windows computers only have the ability to detect whether a PC is running high contrast or high contrast white. For this reason, use the default high contrast black setting for any high contrast, non-white theme.
214168

215-
<!-- In the left part of the image, I think the title should be "High Contrast Black". -->
169+
![High contrast black and high contrast white settings](../images/accessibility-illustration-14.png)
216170

217-
![High contrast black and high contrast white settings](https://i.imgur.com/qvTFzd4.png)
218-
219-
<br/>
220171

221172
## See also
222173

223174
- [SharePoint themes and colors](themes-colors.md)
175+
- [Design a web part](design-a-web-part.md)
224176
- [Designing great SharePoint experiences](design-guidance-overview.md)
225177

226178

34.6 KB
Loading
39 KB
Loading
41.4 KB
Loading
23 KB
Loading
33.8 KB
Loading
23.9 KB
Loading
17.6 KB
Loading
17 KB
Loading
17.9 KB
Loading

0 commit comments

Comments
 (0)