FOUNDATION

Accessibility

Accessible digital design ensures that users of all different abilities can use and navigate an interface.

Accessibility Intro

This foundational guidance outlines the latest research and recommendations from the Goldman Sachs Design System. Future guidance may change to support new research, methods and/or code.

  1. Avoid designs with low contrast, small text or small icons.
  2. Optimize for keyboard input.
  3. Prioritize clean hierarchy and organization of information and break up large blocks of text.
  4. Avoid overwhelming and crowded pages.
  5. Design responsively to allow for browser zoom and optimized legibility.
  6. Don't rely only on color to convey information, add text or iconography as a supplement.

Color contrast is an important factor in legibility. Contrast ratios can range from 1:1 to 21:1 with 21 being the highest level of contrast and best legibility. Black text on a white background is a 21:1 ratio.

As per the W3C recommendations, regular sized text, less than 18 point, if not bold and less than 14 point if bold, should have a contrast ratio of 4.5:1 to meet AA standards.

The color system is built to meet AA standards in the following scenarios: our primary text color is on a light colored background (colors numbered 05–40) or white text is used on dark colored backgrounds (colors numbered 50–90).

accessibility-color-do

DO: Use a background color that has enough contrast to meet the AA standard ratio.

accessibility-color-don't

DON’T: Use a background color that is close in the spectrum to the text color used.

We have a consistent set of contrast ratios for each color ramp across each of our swatches. This helps us be consistent in applying background and text colors that meets the 4.5:1 AA contrast across our color palette.

accessibility-contrast-scale

Dark text with lighter color backgrounds (#10–50) acheive AA contrast and white text on darker color backgrounds (#60–100) acheive AA contrast.

accessibility-contrast-scale-2

Within our color system using a contrast gap of at least 40 between the text color and background color can ensure sufficient AA contrast.

Accessible text

Text: Grey 20, Background: Blue 60, Gap: 40

Accessible text

Text: Blue 70 , Background: Ultramarine 30, Gap: 40

Not Accessible text

Text: Grey 40, Background: Blue 60, Gap: 20

Not Accessible text

Text: Gray 10 , Background: Ultramarine 30, Gap: 20

Our components aim to allow access to the full functionality from a keyboard without needing to use a mouse. We use standard keys and conventions first and foremost and add custom keys only when needed.

Tab is typically used to move to the next link, form element, or button. Shift + Tab is used to reverse or move to the previous link, form element, or button.

accessibility keyboard tab
accessibility keyboard tab example 3
accessibility keyboard tab example 2

Directional arrows are used to move between menu links or adjust sliders in audio and video plugins. The direction should follow the interface direction using up/down when moving vertically and left/right when moving horizontally.

accessibility keyboard arrows
accessibility keyboard arrows example

Enter activates the current link or button and performs the action associated with the link or button, typically directing to a new page or submitting a form.

accessibility keyboard enter
accessibility keyboard enter example 1
accessibility keyboard enter example 2

Space checks or unchecks a checkbox form element. It will also activate a button that currently has focus.

accessibility keyboard space
accessibility keyboard space example

Escape closes the current modal, menu or dropdown menu and returns to the element that opened it.

accessibility keyboard escape
accessibility keyboard escape example

Web Content Accessibility Guidelines (WCAG) 2.1; (W3C, 2018) Andrew Kirkpatrick, Joshue O Connor, Alastair Campbell, Michael Cooper;

Designing for Keyboard Accessibility, (University of Washington)

MDN Web Docs Accessibility

Color Contrast Checker, Mari Johannessen