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 #34

Merged
merged 25 commits into from
Aug 20, 2020
Merged

Conversation

mohanraj-r
Copy link
Contributor

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

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

Releases to be published as part of #35

as the new version of package-dependency-graph includes graphviz support
as the type def has been fixed in axe v4
* TODO: remove file from media branch
as the new version of package-dependency-graph includes graphviz support
as the type def has been fixed in axe v4
* TODO: remove file from media branch
@mohanraj-r mohanraj-r requested review from cordeliadillon and a team as code owners August 19, 2020 21:41
@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       #34   +/-   ##
==========================================
  Coverage          ?   100.00%           
==========================================
  Files             ?        14           
  Lines             ?       112           
  Branches          ?        11           
==========================================
  Hits              ?       112           
  Misses            ?         0           
  Partials          ?         0           

update yarn lock - possible remnant from prev merge commit
@mohanraj-r
Copy link
Contributor Author

@cordeliadillon Can you review this PR (and ignore #33 ) please

@mohanraj-r mohanraj-r self-assigned this Aug 19, 2020
@mohanraj-r mohanraj-r mentioned this pull request Aug 20, 2020
3 tasks
@@ -17,16 +17,11 @@ describe('preset-rules', () => {
// or due to their experimental nature
const excludedRules = [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changes in this test 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.

The list of 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

Copy link
Contributor

@cordeliadillon cordeliadillon left a comment

Choose a reason for hiding this comment

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

Looks good!

@mohanraj-r mohanraj-r merged commit 6456815 into salesforce:master Aug 20, 2020
@mohanraj-r mohanraj-r deleted the upgrade_axe_4 branch August 20, 2020 22:20
mohanraj-r pushed a commit that referenced this pull request Aug 20, 2020
since it has been moved into local feature branch in #34
@mohanraj-r mohanraj-r restored the upgrade_axe_4 branch August 20, 2020 22:36
@mohanraj-r mohanraj-r deleted the upgrade_axe_4 branch August 20, 2020 22:37
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.

4 participants