Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign updocs-infra: address numerous a11y issues #697
Conversation
dbf5810
to
f354578
|
Just a couple last things I noticed |
- do some merging of tslint:recommended and our rules
enable Codelyzer a11y rules Relates to #671
…n correct element Fixes #693
…prove contrast - use Roboto font instead of system-ui for `docs-nav-content-btn`s - use a different background color for selected route, in addition to different text color - increase opacity of `docs-nav-content-btn`s to meet contrast guidelines - switch to `mat-nav-list` to get the benefits of better contrast and hover/focus styles - plus slightly more padding for touch interfaces Fixes #694. Relates to #671.
- improves screen reader support - footer tags were already properly used Relates to #671.
- so that they can be differentiated by screen readers Relates to #671.
- aria-expanded already covers whether the section can be toggled or not - the button's text content already covers the accessible name Relates to #671.
- the aria-label is sufficient Relates to #671.
- minify theme-demo-icon.svg - use & instead of / as it reads better on a screen reader - prefix classes with `docs-` - tell screen reader users when a theme has been selected Fixes #671
|
Addressed feedback and also added a LiveAnnouncer message when a theme is selected from the list. |
|
LGTM |


Please see commits for descriptions and related issues (#671 captures most, but not all of the issues).
More Accessible Theme Picker
The current theme picker is a
mat-grid-listnested in amat-menuwhich isn't ideal.The new theme picker is a
mat-menuwithbuttonelements.TODO