Loading video player…

Accessible Components Without a Framework (Overview)

Welcome to Accessible Components Without a Framework! In this course, you’ll build accessible components with native HTML and CSS.

At the Ashgrove Tool Library, neighbors borrow tools instead of buying them. Kwame, a volunteer, is rebuilding its site. Today, not everyone can find its form errors.

Menus and dialogs once needed JavaScript. HTML and CSS now do most of it. Keyboard and screen reader support comes built in.

What You’ll Build

Section by section, you’ll build each piece of the library’s site:

  • Form errors: You make the donate form’s errors reach a screen reader.
  • Disclosures: You turn the FAQ into disclosures, questions that open and close.
  • Dialogs: You build a dialog for canceling a reservation.
  • Popovers: You add popovers, like a tool card’s menu.
  • Navigation: You fold the navigation away on small screens.
  • A component kit: You turn these pieces into a themeable component kit.

In the project, Kwame’s brief says what to build and how to check it, by keyboard and screen reader, but not the steps.

By the end of this course, you’ll be able to build accessible disclosures, dialogs, popovers, form errors and navigation menus with native HTML and CSS, and assemble them into a themeable component kit from a brief, without a walkthrough.

Before You Start

You should already know cascade layers, design tokens, and light and dark themes, and you should have used a screen reader. The lessons give the commands they use, from Apple’s VoiceOver User Guide and NVDA’s User Guide. You’ll need:

  • Chrome or Edge
  • An editor with a live preview
  • A screen reader: VoiceOver on a Mac, or the free NVDA on Windows

You won’t write any JavaScript in this course.

How the Course Works

The teaching sections each end in a coding exercise. In the project, a mentor reviews your kit with you, and a quiz closes the course.

There are two downloads below this video: the code, with each lesson’s starting and finished pages and the project’s starting folder, and the slides.

Download the code below this video. In the first lesson’s start folder, 01-connect-errors-fields/start, open the Donate a Tool page in your live preview, and tab to the email field with your screen reader. Does it say the email is wrong? The next lesson, Connect Errors to Their Fields, finds out.

Download

Course Slides (.pdf)

931.8 KB
Download

Sample Code (.zip)

81.8 KB

00:00 Welcome to Accessible Components Without a Framework. You’ll build accessible components with native HTML and CSS. Here’s a first taste: a borrowing FAQ in a dark theme.

00:16 At the Ashgrove Tool Library, neighbors borrow tools instead of buying them. Kwame, a volunteer, is rebuilding its site. Today, not everyone can find its form errors.

00:29 Menus and dialogs once needed JavaScript. HTML and CSS now do most of it. Keyboard and screen reader support comes built in.

00:40 First, you make the donate form’s errors reach a screen reader. You turn the FAQ into disclosures, questions that open and close. You build a dialog for canceling a reservation.

00:55 And popovers, like a tool card’s menu. You fold the navigation away on small screens. Finally, you turn these pieces into a themeable component kit.

01:09 In the project, Kwame’s brief says what to build and how to check it, by keyboard and screen reader, but not the steps. By the end, you’ll build a kit without a walkthrough.

01:24 You should know cascade layers, design tokens and themes, and have used a screen reader. Lessons give the commands. You’ll need Chrome or Edge, an editor with a live preview, and VoiceOver on a Mac or the free NVDA on Windows.

01:40 You won’t write any JavaScript.

01:45 Sections end in coding exercises. A mentor reviews your kit. A quiz closes the course. Download the code below this video. In the first lesson’s start folder, open the Donate a Tool page and tab to the email field with your screen reader.

02:03 Does it say the email is wrong? The next lesson, Connect Errors to Their Fields, finds out.

Become a Member to join the conversation.