Skip to content

Commit 646b461

Browse files
authored
Merge pull request #369 from tahoon-ms/color-contrast
Add in-depth color contrast guidelines
2 parents 6715fea + 23c478a commit 646b461

18 files changed

+82
-16
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@
133133
href: ./canvas-apps/global-apps.md
134134
- name: Create an accessible app
135135
href: ./canvas-apps/accessible-apps.md
136+
items:
137+
- name: Color
138+
href: ./canvas-apps/accessible-apps-color.md
136139
- name: Manage your app
137140
items:
138141
- name: Introduction to powerapps.com
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
title: Accessible colors in PowerApps | Microsoft Docs
3+
description: Color contrast guidelines for PowerApps
4+
services: ''
5+
suite: powerapps
6+
documentationcenter: na
7+
author: tahoon
8+
manager: anneta
9+
editor: ''
10+
tags: ''
11+
12+
ms.service: powerapps
13+
ms.devlang: na
14+
ms.topic: article
15+
ms.tgt_pltfrm: na
16+
ms.workload: na
17+
ms.date: 04/23/2018
18+
ms.author: tahoon
19+
20+
---
21+
# Accessible colors in PowerApps
22+
Colors used in an app should be accessible to color-blind and low-vision users. All PowerApps themes are accessible by default. When modifying colors used in an app, follow these guidelines to ensure that they remain accessible.
23+
24+
## Minimum contrast for text
25+
* Text and its background must have a contrast ratio of at least 4.5:1
26+
* Large text must have a contrast ratio of at least 3:1
27+
* Disabled text has no contrast requirements
28+
29+
In practical terms, all interactive controls must have adequate color contrast between:
30+
* **[Color](controls/properties-color-border.md)** and **[Fill](controls/properties-color-border.md)**
31+
* **[PressedColor](controls/properties-color-border.md)** and **[PressedFill](controls/properties-color-border.md)**
32+
* **[HoverColor](controls/properties-color-border.md)** and **[HoverFill](controls/properties-color-border.md)**
33+
34+
## Minimum contrast for non-text
35+
36+
> [!NOTE]
37+
> In the [WCAG 2.0](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html) standard, contrast requirements only applies to text. For greater accessibility, consider the upcoming [WCAG 2.1 contrast guidelines](https://www.w3.org/TR/WCAG21/#non-text-contrast) for essential user interface components like icon buttons. A minimum ratio of 3:1 is recommended for these components. The guidelines descibed in this section are **optional** for WCAG 2.0 compliance.
38+
39+
### User interface components
40+
All interactive controls must have adequate color contrast between:
41+
* **[FocusedBorderColor](controls/properties-color-border.md)** and color outside the control
42+
43+
Additional color contrast checks apply for controls where the entire area is interactive or informative. For example, a **[Button](controls/control-button.md)** or an **[Icon](controls/control-shapes-icons.md)** used as a button. This ensures that the boundaries of the control are clear and users know where they can click or tap.
44+
45+
If there is a border for such controls, there should be adequate color contrast between:
46+
* **[BorderColor](controls/properties-color-border.md)** and color outside the control
47+
* **[PressedBorderColor](controls/properties-color-border.md)** and color outside the control
48+
* **[HoverBorderColor](controls/properties-color-border.md)** and color outside the control
49+
50+
If there is no border, there should be adequate color contrast between:
51+
* **[Fill](controls/properties-color-border.md)** and color outside the control
52+
* **[PressedFill](controls/properties-color-border.md)** and color outside the control
53+
* **[HoverFill](controls/properties-color-border.md)** and color outside the control
54+
55+
### Graphical objects
56+
If an image conveys important information, consider checking it for contrast issues. This applies to controls where an image can be shown: **[Audio](controls/control-audio-video.md)**, **[Image](controls/control-image.md)**, **[Microphone](controls/control-microphone.md)**, and **[Video](controls/control-audio-video.md)**.
57+
58+
For video content, consider checking it for contrast issues. Alternatively or additionally, provide [closed captions](controls/control-audio-video.md) that describe the video.
59+
60+
## Provide other visual cues
61+
Ensure that the app does not convey information with just color. For example, users with red-green color blindness will not be able to distinguish a red error message from a green success message.
62+
63+
Additional cues like an **[Icon](controls/control-shapes-icons.md)** or text styles like **[Italic](controls/properties-text.md)** and **[Underline](controls/properties-text.md)** can help convey meaning.

powerapps-docs/maker/canvas-apps/controls/control-attachments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ There must be adequate color contrast between:
107107
* **MaxAttachmentsColor** and **Fill**
108108
* **NoAttachmentsColor** and **Fill**
109109

110-
This is in addition to the standard color contrast requirements.
110+
This is in addition to the [standard color contrast requirements](../accessible-apps-color.md).
111111

112112
### Screen reader support
113113
The following properties must be present:

powerapps-docs/maker/canvas-apps/controls/control-button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ You can also specify the color of a **Button** control by setting its **[HoverFi
183183

184184
## Accessibility guidelines
185185
### Color contrast
186-
* Standard color contrast requirements apply.
186+
* [Standard color contrast requirements](../accessible-apps-color.md) apply.
187187

188188
### Screen reader support
189189
* **[Text](properties-core.md)** must be present.

powerapps-docs/maker/canvas-apps/controls/control-check-box.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ There must be adequate color contrast between:
140140
* **CheckboxBackgroundFill** and **[PressedFill](properties-color-border.md)**
141141
* **CheckboxBackgroundFill** and **[HoverFill](properties-color-border.md)**
142142

143-
This is in addition to the standard color contrast requirements.
143+
This is in addition to the [standard color contrast requirements](../accessible-apps-color.md).
144144

145145
### Screen reader support
146146
* **[Text](properties-core.md)** must be present.

powerapps-docs/maker/canvas-apps/controls/control-combo-box.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ There must be adequate color contrast between:
9898
* **SelectionFill** and **[Fill](properties-color-border.md)**
9999
* **SelectionTagColor** and **SelectionTagFill**
100100

101-
This is in addition to the standard color contrast requirements.
101+
This is in addition to the [standard color contrast requirements](../accessible-apps-color.md).
102102

103103
### Screen reader support
104104
* **[AccessibleLabel](properties-accessibility.md)** must be present.

powerapps-docs/maker/canvas-apps/controls/control-data-table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ There must be adequate color contrast between:
149149
* **SelectedColor** and **SelectedFill**
150150
* [**HoverColor**](properties-color-border.md) and [**HoverFill**](properties-color-border.md)
151151

152-
This is in addition to the standard color contrast requirements.
152+
This is in addition to the [standard color contrast requirements](../accessible-apps-color.md).
153153

154154
### Screen reader support
155155
* **NoDataText** must be present.

powerapps-docs/maker/canvas-apps/controls/control-date-picker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ If you add a **Date Picker** control instead of a **[Text input](control-text-in
111111

112112
## Accessibility guidelines
113113
### Color contrast
114-
* Standard color contrast requirements apply.
114+
* [Standard color contrast requirements](../accessible-apps-color.md) apply.
115115

116116
### Screen reader support
117117
* **[AccessibleLabel](properties-accessibility.md)** must be present.

powerapps-docs/maker/canvas-apps/controls/control-drop-down.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ There must be adequate color contrast between:
143143
* **SelectionColor** and **SelectionFill**
144144
* **SelectionFill** and **[Fill](properties-color-border.md)**
145145

146-
This is in addition to the standard color contrast requirements.
146+
This is in addition to the [standard color contrast requirements](../accessible-apps-color.md).
147147

148148
### Screen reader support
149149
* **[AccessibleLabel](properties-accessibility.md)** must be present.

powerapps-docs/maker/canvas-apps/controls/control-image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ If you add one or more **Image** controls to your app, you can show individual i
134134

135135
## Accessibility guidelines
136136
### Color contrast
137-
* Standard color contrast requirements apply, if the graphic is used as a button.
137+
* [Standard color contrast requirements](../accessible-apps-color.md) apply, if the graphic is used as a button.
138138
* Consider checking for contrast issues within the image, if it is not purely decorative.
139139

140140
### Screen reader support

0 commit comments

Comments
 (0)