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

chore: update to axe v4 #33

Closed
wants to merge 25 commits into from

Conversation

mohanraj-r
Copy link
Contributor

@mohanraj-r mohanraj-r commented Aug 13, 2020

Recreated as #34 due to not force-pushing after doing rebase and incorrect diff showing up in this PR as a result

Primary changes

  • Update to the latest major release of axe
    • Removed deprecated rules that have been removed from axe v4 (30d5a6c)
    • Removed lint suppression for axe.version as the type def has been fixed in axe v4 (ab339d5)
    • Updates to jest snapshots to reflect axe help URL changes with v4
  • Moved dependency graph from dedicated media branch to feature branch
    • as the dependency graph depends on pkg structure of the feature branch which doesn't always reflect the version checked into media branch
    • the svg file is not technically binary as other files in media branch and also doesn't take much space (~10kb) so it shouldn't bloat feature branches

TODO

Post merge

  • Remove obsolete origin/media:architecture/sa11y_dependency_graph.svg after merge to master
  • Publish github release
  • Publish to npm

@mohanraj-r mohanraj-r marked this pull request as ready for review August 13, 2020 02:27
@mohanraj-r mohanraj-r requested review from cordeliadillon and a team as code owners August 13, 2020 02:27
@@ -17,16 +17,11 @@ describe('preset-rules', () => {
// or due to their experimental nature
const excludedRules = [
/* cSpell:disable */
'aria-dpub-role-fallback',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cordeliadillon Changes in this file to remove rules that have been removed from axe v4 along with updating help urls of a11y results in test snapshots were the primary changes to upgrade to axe v4. Can you please review.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The removed rules match https://github.com/dequelabs/axe-core/releases/tag/v4.0.0

The following rules were deprecated in axe-core 3.x, and are removed in 4.0:

aria-dpub-role-fallback
checkboxgroup
layout-table
radiogroup
video-description

@mohanraj-r mohanraj-r self-assigned this Aug 18, 2020
@codecov
Copy link

codecov bot commented Aug 19, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@81c09be). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             master       #33   +/-   ##
==========================================
  Coverage          ?   100.00%           
==========================================
  Files             ?        14           
  Lines             ?       112           
  Branches          ?        11           
==========================================
  Hits              ?       112           
  Misses            ?         0           
  Partials          ?         0           

@mohanraj-r
Copy link
Contributor Author

Going to recreate this PR as the rebase after merging the last PR #32 doesn't reflect correctly in this PR. The changes from #32 are repeated in this PR which is confusing. Will figure out a way to avoid this in future.

@mohanraj-r mohanraj-r closed this Aug 19, 2020
@mohanraj-r mohanraj-r mentioned this pull request Aug 19, 2020
3 tasks
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.

1 participant