Designing for accessibility enables your application to support a wider audience of users. Government regulations, such as the Equality Act 2010 in the United Kingdom and Section 508 of the Rehabilitation Act in the United States, may also require application accessibility.
Note: Government agencies may require certification that an application meets accessibility guidelines. For example, the United States government requires a Voluntary Product Accessibility Template (VPAT) verified by a third party to demonstrate Section 508 compliance for each application release.
Pega Platform™ supports the Web Accessibility Initiative-Accessible Rich Internet Applications (WAI-ARIA) standard. WAI-ARIA is a technical specification that defines ways to make digital content and Web applications more accessible to people with disabilities by using WAI-ARIA roles.
WAI-ARIA roles are specific attributes applied to user interface elements. The roles enable communication between assistive devices and Pega Platform applications about UI elements. For example, a role directs a screen reader to differentiate between a check box and a button and provide an appropriate experience to the user for each control.
Note: The WAI-ARIA standard conforms to the Web Content Accessibility Guidelines (WCAG 2.1) maintained by the World Wide Web Consortium (W3C). Additional information on web accessibility is available from the W3C. Whenever possible, applications should target the A & AA level of the WCAG.
Types of WAI-ARIA roles
Pega Platform supports three types of WAI-ARIA roles. Each role type describes the content or functionality of a specific area within a portal.
- Landmark – The landmark roles organize content within a portal to improve navigation when using a screen reader by providing quick access to specific areas of the page. Landmark content is purpose-specific, relating to the navigation, search, or consumption of content. To learn more about how Pega Platform portals use landmark roles to support accessibility, see WAI-ARIA roles in a screen layout.
- Document structure – The document structure roles describe the structure of the page content. Typically the document structure roles are not interactive. Document structure includes elements such as row or column headings, notes, or presentations.
- Component/Widget – A component or widget is an interactive interface object. Widget roles map to standard features in accessibility APIs. When the user navigates to a widget, assistive technologies intercept keyboard events and pass them through the web application to the widget.
You can assign role types to dynamic layouts in a section. By default, Pega Platform assigns WAI-ARIA roles to UI controls and other components, such as screen layouts and dynamic containers.
Caution: If you customize the HTML code associated with a control or create a custom control, apply role types to the UI control in accordance with the W3C guidelines.
Accessibility in updated applications
By default, accessibility is enabled for all users on Pega Platform. Previous versions of Pega Platform required that developers enable accessibility features for individual access groups. If you update an application from a previous version of Pega Platform, update all access groups to clear the Enable accessibility add-on check box and remove the PegaWAI ruleset from the list of production rulesets for the application and all access groups.
Note: Previous versions of Pega Platform enabled accessibility for individual end-user access groups through the use of the PegaWAI ruleset, which conformed to the WCAG 1 standard. To avoid segmenting users into different access groups based upon accessibility features (which may be perceived as biased or discriminatory behavior) and to ensure compliance with the WCAG 2.1 standard, discontinue use of the PegaWAI ruleset in any application updated to the current version of Pega Platform. To learn more about accessibility in Pega Platform applications, see Accessibility standards in Pega Platform.
Check your knowledge with the following interaction:
Pega Platform best practices for accessibility
Pega also recommends accessibility best practices to support the use of assistive devices. The following table lists several configuration options developers can perform to improve application accessibility.
|Provide labels for all controls, such as buttons, links, icons, and input fields, even if the label is hidden.||Announces the purpose of the control to users with a screen reader.|
|Configure a high-contrast color scheme when customizing the application skin.||Ensures the contrast is sufficient for users with vision limitations.|
|Set keyboard commands for controls, following the recommendations provided by the W3C as part of the WAI-ARIA Authoring Practices.||Enables expected keyboard controls for users limited to keyboard-only interactions.|
|Use buttons only for actions, and use links only for navigation.||Provides a consistent user experience that an assistive device can describe to a user.|
|Enable use of the close button to dismiss an overlay or modal.||Provides a navigation element that a user can access through an assistive device.|
|Mark only one container as the main content area by default.||Provides the ability for an assistive device to identify the main work area of a form.|
|Use a drop-down list of options instead of text entry for fields with predictable answers (for example, a series of numbers or colors).||Provides a visible list of options that an assistive device can read to a user.|
Note: For additional guidance on best practices for configuring designing an accessible application, see Best practices for accessibility..
The Accessibility Inspector
The Accessibility Inspector tool allows you to identify accessibility issues within your application. Using the Accessibility Inspector tool, you can check what your application looks like to users of varying visual abilities and review UI components that are not accessible. Once identified, you can fix accessibility issues to ensure that users with disabilities can quickly access and efficiently operate your application. The Accessibility Inspector is available in Pega Platform workspaces such App Studio and Dev Studio and the User portal when launched from Dev Studio.
Use the Accessibility Inspector pane to check if your application is compliant with best practices for accessibility.
- You can check for accessibility across disabilities such as color blindness.
- You can also verify that your images have labels.
- You can find page elements that may cause issues for people with disabilities.
Caution: The Accessibility Inspector identifies common Pega-specific accessibility issues within your application but is not a replacement for formal automated and manual accessibility testing. You should always test with an automated testing tool like axe-core and actual users, as automated tools only detect about 30% of accessibility issues.
Audit for compliance with best practices
When active, the Accessibility Inspector identifies configurations that may negatively impact application accessibility, as shown in the following image.
The Accessibility Inspector organizes the issues found into four categories.
- Content – Issues with the configuration of controls. For example, an icon is missing helper text or a label.
- Structural – Issues with the organization of content within the portal. For example, the heading level hierarchy is out of order, which can potentially confuse screen readers.
- Interactivity - Issues affecting how assistive devices navigate the UI. For example, the skip to content navigation is missing from the portal configuration, which prevents users from using the Enter key to navigate to the main content.
- Compatibility – Issues with the Pega UI elements used on a form. For example, a form uses a tab group layout, which is deprecated, instead of a layout group.
To inspect UI configurations that reduce application accessibility, expand the arrows to the left of the Content, Structural, Interactivity, and Compatibility headings. Once expanded, you see descriptions of each issue. Expand an issue to display the affected UI elements. Hover over a UI element and click the crosshairs icon to open the element in Dev Studio and address the issue.
Preview for color vision deficiency
The Disability preview option allows you to observe how your application appears to users with one of four types of color vision deficiency. The Disability preview provides four modes for simulating color vision deficiencies.
- Achromatopsia (Absence of color)
- Deuteranopia (Red Green confusion)
- Protanopia (Red Green confusion)
- Tritanopia (Yellow Blue confusion)
To mimic the appearance of your application as perceived by a user with a color vision deficiency, click the drop-down to the right of the Disability preview label. By default, the Disability preview is set to None. Change the preview setting to temporarily shift the color palette to match the selected color vision deficiency. To restore the original color palette, select None or close the Accessibility Inspector.
Note: To learn more about using the Accessibility Inspector tool, see Inspecting Accessibility.
In the center of the following image, drag the vertical line to compare the standard display of a form with the display as perceived by a user with tritanopia:
Check your knowledge with the following interaction: