sapui5tutors SAPUI5 • Fiori • SAP BTP Step-by-step tutorials Real project examples Interview Q&A
Practical SAPUI5 • Fiori • SAP BTP tutorials and interview prep

SAPUI5 Accessibility: WCAG-Compliant Apps Checklist

Why Accessibility Isn't Optional

WCAG 2.2 compliance is a legal requirement in the EU, the US, and increasingly everywhere else. Beyond compliance, accessible apps are simply better apps — keyboard users, screen-reader users, and users with low vision all benefit.

SAPUI5 gives you most accessibility features for free. Your job is mostly to not break them — and to add the labels and structure the framework can't guess.


Labels: The Foundation

Every input needs an accessible name. Use the labelFor association or place a sap.m.Label next to the field. Placeholder text is not a label — it disappears when the user types.

<Label text="Material Number" labelFor="matnrInput"/>
<Input id="matnrInput"
       showValueHelp="true"
       ariaLabelledBy="matnrInputLabel"/>

For icon-only buttons, set a tooltip. UI5 maps it to the accessible name automatically.


Keyboard Navigation Checklist

  • Tab order is logical: the default DOM order should match the visual flow. Fix layout order before adding tabindex hacks.
  • Focus is visible: never remove the focus outline with CSS. If your theme hides it, that's a bug, not a style choice.
  • Dialogs trap focus: sap.m.Dialog handles this for you — don't build custom popups with plain divs.
  • Custom controls respond to keyboard: if it clicks, it must also work with Enter and Space.

Screen Reader Essentials

  • Landmarks: use sap.ui.layout page structure so the app exposes header, content, and footer regions.
  • Live regions for async feedback: use MessageToast for confirmations — it's announced automatically. For custom status text, set aria-live regions explicitly.
  • Tables: sap.ui.table.Table and sap.m.Table generate proper headers and row associations. Keep column headers short and meaningful.
  • Status icons: an icon alone means nothing to a screen reader — pair it with text or an aria-label.

Test with a real screen reader, not just an audit tool. NVDA is free on Windows and catches issues no scanner will find.


Color and Contrast

  • Contrast ratio: text needs 4.5:1 against its background (3:1 for large text). UI5 themes pass this — your custom CSS might not.
  • Never color alone: an error shown only in red is invisible to color-blind users. Pair color with an icon and text.
  • Dark mode: verify contrast in both themes if your app supports theme switching.

Test It Like a User

Automated scanners catch maybe a third of real issues. The checks that matter are manual: unplug your mouse and complete your app's main flow with only the keyboard, then run through it with a screen reader.

If you can't complete the core task with keyboard and screen reader alone, the app isn't accessible yet — no matter what the audit tool scored.


Wrapping Up

Run this checklist on your next app review: labels on every input, logical tab order, visible focus, meaningful announcements, and sufficient contrast. Say you have a requisition approval screen — these five checks take an hour and catch the issues that block real users.

Found an accessibility gotcha in UI5 that isn't on this list? Share it in the comments.