- c45ed13 Fixed issue with ref props created with React.createRef()
- 9acfd3f Added back in all of the previous rules that had been renamed with deprecation warnings to allow for a smoother transition for consuming applications.
- 72e593a Remove babel-register from dependencies as this pulls in babel-core 6 which means that babel 7 can't be used cleanly
- ce7f037 Renamed and modified button-role-space to click-events-have-key-events to be more consistent with the rule in the the eslint-plugin-jsx-a11y library
- 3e9e4b5 Renamed a number of rules that were equivalent to existing rules in the eslint-plugin-jsx-a11y library for consistency between the two libs
- 58e525f Changed documentation reference to ENV to process.env.NODE_ENV
- 73c69e6 Renamed rule avoid-positive-tabindex to tabindex-no-positive to be more inline with the rule naming in eslint-plugin-jsx-a11y
- 4bcb769 Removed yarn from Travis yaml so npm will be used with package-lock.json and use npm ci
- ba57e2e Added package-lock.json and fixed npm audit findings
- 26b2772 Fixed a dead link pointing to the W3's aria role definitions document
- d4b2256 Changed the format of the reporter to use a default prefix of '[react-a11y]' to aid with identification and filtering in the console
- 6471b17 Updated Travis config to solve for issue with headless Chrome tests failing
- 5a08e10 Add missing "o"
- ee6a99e docs: fix typos
- 94573c1 Revamp the API and configuration to allow for more modular rules to be added.
API Changes:
An options object can now be passed in to the a11y()
function where you can specify a rules configuration, a
reporter function allowing modification of how warnings are displayed, a filter function for filtering all failures,
and finally a plugins array listing the names of any plugin modules to be used.
See Usage for details.
Plugins!
react-a11y is now pluggable! See writing plugins to learn how to write your own plugin.
- b8f4e58 Update ReactDOM for react v16 compatibility
- e41ba68 Fixed #11 from being too strict testing for use-onblur-not-onchange. Now it should pass if onChange is used in addition to onBlur.
- 3173a1d Fixed #10 where if a tagName is being checked for reserved in the DOM object but does not exist in the DOM object an exception was being thrown
- d0401be 1. Updated eslint and plugin versions 2. Added the AirBnB eslint config to inherit 3. Fixed all linter findings
- d85328e Added some more scripts for helping with the version and publish process and added descriptions of the scripts in the CONTRIBUTING.md
- 2ffa8ac Added a CONTRIBUTING page and linked to it from the README.
- c715c45 Updated urls to point to this repo instead of the forked from repo
- fa32346 Added the bundle script to the prepublish script so that the webpack bundle gets included in the npm package. Also disabled the release script and removed the rf-release package as this does not seem to be tagging or publishing to npm properly.
- 8bff3fe Added/removed dirs and files from npmignore
- be6f51e Adding some tags! Added and
- 2e59bba [fixed] Move object.assign from devDeps to deps (resolves #115)
- 78eb833 [fixed] correctly accounting for aria-labelledby (resolves #99)
- f43b546 [fixed] Spelling error
- 26afd1e [fixed] correctly accounting for aria-labelledby (resolves #87)
- 0e6bb84 [added] includeSrcNode takes "asString" as option.
- 2f5f942 [added] warningPrefix option
- bdc24df [added] "picture" to the list of redundant words in img[alt]
- 598c8f8 [fixed] Label test should require a label for placeholder anchors (resolves #68) [fixed] Label assertion errors if label is a number (resolves #67)
- 4d1f885 [fixed] bug where placeholder links required a tabindex and an ARIA role (closes #62) [fixed] bug where elements with role=none required a label (closes #63) [fixed] bug where elements with aria-hidden required a label (closes #64) [added] test to ensure interactive elements hidden using aria-hidden are removed from the tab flow
- 66aea56 [added] docs for excluding tests to the README (resolves #60)
- 8f2a22a [fixed] bug where label assertion didn't account for the label being an image created by a custom component (resolves #52) [fixed] bug where label assertion wouldn't fail when none of the child Components have label text (resolves #53)
- 2c47c8d [fixed] issue where elements with the presentation role required a label. resolves #50
- 8c6a7ce [fixed] bug where the label assertion can return a false failure #48
- c4d52fc [fixed] Issue where label assertion returns a false negative when label is inside a child Component (fixes #44) [added] Tests to ensure anchors with a tabIndex but without an href require an ARIA button role (fixes #45) [added] selection and option to the list of interactive elements that require labels [removed] getFailures() method since all failures are now logged asynchronously
- 78eb833 [fixed] correctly accounting for aria-labelledby (resolves #99)
- f43b546 [fixed] Spelling error
- 26afd1e [fixed] correctly accounting for aria-labelledby (resolves #87)
- 0e6bb84 [added] includeSrcNode takes "asString" as option.
- 2f5f942 [added] warningPrefix option
- bdc24df [added] "picture" to the list of redundant words in img[alt]
- 598c8f8 [fixed] Label test should require a label for placeholder anchors (resolves #68) [fixed] Label assertion errors if label is a number (resolves #67)
- 4d1f885 [fixed] bug where placeholder links required a tabindex and an ARIA role (closes #62) [fixed] bug where elements with role=none required a label (closes #63) [fixed] bug where elements with aria-hidden required a label (closes #64) [added] test to ensure interactive elements hidden using aria-hidden are removed from the tab flow
- 66aea56 [added] docs for excluding tests to the README (resolves #60)
- 6f38fe8 [Added] Ability to exclude tests (resolves #57)
- 8f2a22a [fixed] bug where label assertion didn't account for the label being an image created by a custom component (resolves #52) [fixed] bug where label assertion wouldn't fail when none of the child Components have label text (resolves #53)
- 2c47c8d [fixed] issue where elements with the presentation role required a label. resolves #50
- 8c6a7ce [fixed] bug where the label assertion can return a false failure #48
- c4d52fc [fixed] Issue where label assertion returns a false negative when label is inside a child Component (fixes #44) [added] Tests to ensure anchors with a tabIndex but without an href require an ARIA button role (fixes #45) [added] selection and option to the list of interactive elements that require labels [removed] getFailures() method since all failures are now logged asynchronously
- 7c16747 Add filtering for different device types.
- 6475a4a Add a means of filtering failures on a per-component basis
- 9c0f970 Add Travis build status
- 34533d7 Drop React from peerDependency and rely on passing it in
- 803325d Mark all failing tags with an ID and include it in the message
- 3af4d51 Use Babel for prepublish
- 870237a Ensure elements with a tabIndex is set to 0 are considered interactive
- 069ab87 Add support for React 0.13. Switch from 6to5 to Babel
- e7d1373 Skip processing props that are null or undefined
- b6f1d81 Ensure buttons have onKeyDown event listeners that trigger a click event for Spacebar and Enter keys
- 3b7f988 [fixed] missing interactive tags
- 2d0c081 [added] ability to throw instead of warn
- 109bd94 [added] button role but no keydown handler