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

Accessibility improvements #129

Merged
merged 7 commits into from
Oct 18, 2019
Merged

Accessibility improvements #129

merged 7 commits into from
Oct 18, 2019

Conversation

NickColley
Copy link
Contributor

@NickColley NickColley commented Oct 18, 2019

This pull request addresses the majority of accessibility issues raised from mine and @jakubmiarka 's review.

See commits for details.

Screenshots

Code elements within links


Focused

You can specify the line height within the mixin
This means when users change their font size that these elements
will scale alongside the rest of the text.

We leave the pixel font sizes as fallbacks for older browsers.

Fixes #127
As these have been given 'aria-hidden' to hide them from screen readers
we should also ensure that they cannot be tabbed to.

By adding 'tabindex=-1' we ensure that a screen reader user does not tab
to these and get no response.

Fixes #126
Previously the replace method only replaced the first white space with a
hyphen.

By using regex and looking for whitespace we will capture all spaces
between text and create correct IDs that are unique

Fixes #112
Since this content is not main content but related to it,
we can use the 'aside' element to indicate this is complementary content
to the main content.

Fixes #111
Nested pages render links within the sidebar differently.
Spans are required to show a focus state, so by adding this it makes
these nested links consistent with the rest of the navigation.

Fixes #114
Copy link
Contributor

@jonheslop jonheslop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work 👏 🎖 😎

@NickColley NickColley merged commit 58d4e80 into master Oct 18, 2019
@NickColley NickColley deleted the accessibility-improvements branch October 18, 2019 12:11
@NickColley NickColley mentioned this pull request Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants