Skip to content

Commit

Permalink
chore: upgrade axe-core from 4.1.2 to 4.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuth committed Jul 29, 2021
1 parent c5f6375 commit 213e146
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@types/jest": "^26.0.24",
"@types/react": "^17.0.2",
"autoprefixer": "^10.2.4",
"axe-core": "^4.1.2",
"axe-core": "^4.3.2",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"core-js": "^3.9.1",
Expand Down
10 changes: 10 additions & 0 deletions packages/components/src/Button/button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,23 @@ linkWithIcon.args = {
color: "success",
variant: "link",
};
linkWithIcon.parameters = {
axe: {
disabledRules: ["aria-allowed-role"],
},
};

export const outlineWithIcon = Template.bind(null);
outlineWithIcon.args = {
children: <>Outline with icon {heartIcon}</>,
color: "warning",
variant: "outline",
};
outlineWithIcon.parameters = {
axe: {
disabledRules: ["aria-allowed-role"],
},
};

export const withFakeClassName = Template.bind(null);
withFakeClassName.args = {
Expand Down
10 changes: 8 additions & 2 deletions packages/components/src/SvgIcon/SvgIcon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export default {
},
},
},

parameters: {
axe: {
disabledRules: ["aria-allowed-role"],
},
},
};

type Args = React.ComponentProps<typeof SvgIcon> & {
Expand Down Expand Up @@ -84,7 +90,7 @@ FullScreen.args = {

FullScreen.parameters = {
axe: {
disabledRules: ["scrollable-region-focusable"],
disabledRules: ["aria-allowed-role", "scrollable-region-focusable"],
},
};

Expand Down Expand Up @@ -150,7 +156,7 @@ AllIcons.parameters = {
skip: true,
},
axe: {
disabledRules: ["scrollable-region-focusable"],
disabledRules: ["aria-allowed-role", "scrollable-region-focusable"],
},
controls: {
hideNoControlsWarning: true,
Expand Down

0 comments on commit 213e146

Please sign in to comment.