Visitar URL original
docs-infra: address numerous a11y issues by Splaktar · Pull Request #697 · angular/material.angular.io · GitHub
The Wayback Machine - https://web.archive.org/web/20201018233651/https://github.com/angular/material.angular.io/pull/697
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs-infra: address numerous a11y issues #697

Merged
merged 13 commits into from Jan 17, 2020
Merged

docs-infra: address numerous a11y issues #697

merged 13 commits into from Jan 17, 2020

Conversation

@Splaktar
Copy link
Member

@Splaktar Splaktar commented Dec 28, 2019 •

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-list nested in a mat-menu which isn't ideal.
The new theme picker is a mat-menu with button elements.

Screen Shot 2019-12-28 at 19 34 31
Screen Shot 2019-12-28 at 19 34 13

TODO

  • This list
  • Add some visual color hints to theme picker
@Splaktar Splaktar force-pushed the a11y-codelyzer-tslint branch from 35c75f3 to 4b339a0 Dec 30, 2019
@Splaktar Splaktar force-pushed the a11y-codelyzer-tslint branch 2 times, most recently from dbf5810 to f354578 Jan 9, 2020
src/app/pages/component-viewer/component-viewer.html Outdated Show resolved Hide resolved
src/app/shared/stack-blitz/stack-blitz-button.html Outdated Show resolved Hide resolved
src/app/shared/theme-picker/theme-picker.html Outdated Show resolved Hide resolved
src/app/shared/theme-picker/theme-picker.scss Outdated Show resolved Hide resolved
src/app/shared/theme-picker/theme-picker.spec.ts Outdated Show resolved Hide resolved
src/assets/img/theme-demo-icon.svg Outdated Show resolved Hide resolved
Copy link
Member

@jelbourn jelbourn left a comment

Just a couple last things I noticed

src/app/shared/theme-picker/theme-picker.ts Outdated Show resolved Hide resolved
src/app/shared/theme-picker/theme-picker.scss Outdated Show resolved Hide resolved
@Splaktar Splaktar force-pushed the a11y-codelyzer-tslint branch from e759ed2 to 77fbd7b Jan 17, 2020
Splaktar added 6 commits Nov 10, 2019
- do some merging of tslint:recommended and our rules
enable Codelyzer a11y rules

Relates to #671
Fixes #695
…n correct element

Fixes #693
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.
Splaktar added 7 commits Dec 28, 2019
- 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.
…an SVG
Fixes #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
@Splaktar Splaktar force-pushed the a11y-codelyzer-tslint branch from 77fbd7b to 419de93 Jan 17, 2020
@Splaktar
Copy link
Member Author

@Splaktar Splaktar commented Jan 17, 2020

Addressed feedback and also added a LiveAnnouncer message when a theme is selected from the list.

Copy link
Member

@jelbourn jelbourn left a comment

LGTM

@jelbourn jelbourn merged commit 5580b24 into master Jan 17, 2020
4 checks passed
4 checks passed
ci/circleci: build Your tests passed on CircleCI!
Details
ci/circleci: lint Your tests passed on CircleCI!
Details
ci/circleci: test Your tests passed on CircleCI!
Details
cla/google All necessary CLAs are signed
@Splaktar Splaktar deleted the a11y-codelyzer-tslint branch Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.