Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Accessibility in Practice (Summary)

You’ve finished Accessibility in Practice. You can now check a site against WCAG 2.2 AA with the keyboard, a screen reader, and automated tools, and fix what they find: names, roles, focus, structure, and the problems tools can’t see.

Before and After

  • Keyboard first: On the Rehearsals page, tabindex="3" put the Download the schedule link first. Without it, focus follows the page. And with the outline: none rule gone, every stop shows a ring. Your own copy also starts with the skip link you added, which the finished download leaves out. The Ticket prices dialog trapped focus, and Escape didn’t close it. A Close button inside it lets you out.
  • Names and roles: The newsletter button’s aria-label hid its visible text, “Join”. Now the button says “Join the newsletter”, and the Accessibility pane shows that as its name. The Get tickets div became a real <button>, so it takes focus. The sign-up form’s voice-part menu had no name. Now a label names it, so the accessibility tree gives Tomás’s screen reader a combo box named “Voice part”.
  • The audit: axe flagged 4 of the 12 planted problems. Your keyboard and screen-reader passes found the rest, and each became a finding in six parts: what, where, which success criterion, who it affects, severity, and fix. On the fixed site, axe finds no violations on all eight pages, and Lighthouse scores 100 on the five pages it ran on. Those passes prove the rest.

Things to Remember

  • Walk every page with the keyboard first: Tab, Shift+Tab, Enter, Space, and Escape.
  • Never use a positive tabindex, and keep focus visible and out from under a sticky header.
  • Name controls from their visible text.
  • Use native HTML before ARIA.
  • Listen for role, name, and state.
  • A clean automated report only proves that no rule failed.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

00:00 You’ve finished Accessibility in Practice. You can now check a site against WCAG 2.2 AA with the keyboard, a screen reader, and automated tools, and fix what they find: names, roles, focus, structure, and the problems tools can’t see.

00:18 You started with the keyboard alone. On the Rehearsals page, a tabindex of 3 put the schedule download link first. Without it, focus follows the page. And with the rule hiding outlines gone, every stop shows a ring.

00:34 The Ticket prices dialog trapped focus. A Close button inside it lets you out.

00:41 In the Accessibility pane, you read each name. The Join button’s aria-label hid its visible text. Now the button says Join the newsletter, and that’s its name.

00:53 The Get tickets div became a real button, so it takes focus. And the sign-up form’s voice-part menu had no name. Now a label names it for Tomás’s screen reader.

01:08 Then you audited the whole site. axe flagged 4 of the 12 planted problems. Your keyboard and screen-reader passes found the rest. Each became a finding in six parts.

01:20 On the fixed site, axe finds no violations, and Lighthouse scores 100. Your passes prove the rest.

01:29 Walk every page with the keyboard first. Never use a positive tabindex, and keep focus visible and in view. Name controls from their visible text. Use native HTML before ARIA.

01:42 Listen for role, name, and state. And a clean automated report only proves that no rule failed. Compare your site with the finished one in the download. Now Tomás can find the schedule and sign up.

01:57 This is course 4 of 5 on the Modern CSS and Accessible Interfaces path.

02:04 Thanks for following along.

Become a Member to join the conversation.