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

Add accessibility testing and fixes #6

Merged

Conversation

nfreear
Copy link

@nfreear nfreear commented Jun 4, 2018

Hi @BernhardBehrendt,

I've added automated accessibility testing with grunt-rsids-pa11y.

There are some subtle accessibility fixes to the cookie-notice user-interface:

  • Slightly darker red for the button (fixes colour contrast);
  • A role=button attribute for the button (WAI-ARIA);
  • Underline for the "learn more" link (non-colour based link indication);
  • The "learn more" link now opens in the same window by default (otherwise, we'd need to add "opens in new window" or similar to the link-text);
  • There is a new linkTarget configuration option, so developers can set target=_blank;

Full details of the changes are in the new Changelog.

Note, these changes may be enough to justify a 1.2.0 release, instead of a 1.1.12 (semver) -- your call!

I think its important to get accessibility right, as we're providing a third-party user-interface component to developers, and saying "use this"!

(Also, I hope you don't mind - I removed my email address from the README and bower JSON.)

I hope this helps.

Best wishes,

Nick

… [ci skip]

* Add `files`, bugs, engines  & contributors fields to package JSON;
* Remove Nick's email address from README & bower JSON;
* Validator ~ http://package-json-validator.com/
…CAG2AA

* ... in the Grunt Javascript
* Plus, add `live-server` to `peerDependencies` package JSON
Copy link

@BernhardBehrendt BernhardBehrendt left a comment

Choose a reason for hiding this comment

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

Cool to improve the cookie-notice even from an accessibility perspective too. Also like the mor modern things like rem and Changelog. Thanks again :-) @nfreear

@BernhardBehrendt BernhardBehrendt merged commit c75f30f into AOEpeople:master Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants