We built 5 accessible components together in this course. Thatโs all weโre doing for accessibility in this course. We wonโt be building the rest of the components. Why? Two reasons:
- You already know Accessibility
- Letโs focus on JavaScript
You already know Accessibility
You donโt need to make every component accessible to know how to make accessible components. You already know how to. You have good foundations. And you can explore the rest yourself if you want to.
Letโs focus on JavaScript
If you want to make every component accessible, you need an in-depth understanding of WAI-ARIA. This means you have to read the specifications (actually you donโt, because I read it for you) and understand the differences between every aria property out there.
This can be super confusing. For example, the spec says certain ARIA properties are compulsory (like aria-controls), but these properties donโt work across screen readersโฆ
They also recommend things that cannot be applied. For example, it says there are two methods to help screen readers focus on elements. One of them isnโt even worth doing. I did an in-depth research and wrote an article comparing the two.
So you need to figure out the inconsistencies between what the spec recommends vs what screen readers actually implement. You also need to figure out the inconsistencies between different screen reader + browser pairingsโฆ
Soโฆ Accessibility is a HUGE and COMPLICATED field. Letโs not go there.
This is a course on JavaScript. Letโs focus on JavaScript.
Accessibility hints
Here are some hints if you want to try making the rest of the components accessible:
- Calculator
- Use
role=application
- Use
- Datepicker
- Use
role=gridfor the date grid
- Use
- Typeahead
- Use
role=comboboxfor the typeahead component - Use
role=listboxfor the list of options - Use
role=optionfor each option
- Use
With that, letโs move on to the next topic! ๐.
Welcome! Unfortunately, you donโt have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson