Part 2 of a series on Angular accessibility. Part 1 introduced Openbook, a fictional demo app that starts out deliberately inaccessible.
In Part 1, I read through Openbook's code and listed what I expected to go wrong. This post starts fixing it, beginning with the foundation: the HTML itself. Most of the changes are small, and they make the biggest difference to keyboard and screen reader users, because everything else builds on them.
Repo: openbook-angular-a11y
Before: post-01-baseline
After: post-02-after
As in Part 1, I haven't run an automated scanner or a screen reader against this version. The changes below follow from how native HTML elements and ARIA attributes are defined to behave.…