Skip to content

Commit

Permalink
Merge pull request #235 from recurly/add-a11y-addon
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissrogers authored Aug 7, 2024
2 parents 82d82a1 + 2f905d3 commit 0f55f61
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const config = {
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions'
'@storybook/addon-interactions',
'@storybook/addon-a11y'
],
framework: {
name: '@storybook/react-vite',
Expand Down
10 changes: 9 additions & 1 deletion docs/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ const preview = {
color: /(background|color)$/i,
date: /Date$/
}
}
},
a11y: {
// axe-core configurationOptions (https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#parameters-1)
// config: {},
// axe-core optionsParameter (https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#options-parameter)
// options: {},
// optional flag to prevent the automatic check
// manual: true,
},
}
};

Expand Down
37 changes: 37 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@babel/preset-react": "^7.18.6",
"@definitelytyped/dtslint": "^0.0.163",
"@recurly/public-api-test-server": "https://gitpkg.now.sh/recurly/recurly-js/packages/public-api-fixture-server?v4.26.5",
"@storybook/addon-a11y": "^7.6.20",
"@storybook/addon-essentials": "^7.0.24",
"@storybook/addon-interactions": "^7.0.24",
"@storybook/addon-links": "^7.0.24",
Expand Down

0 comments on commit 0f55f61

Please sign in to comment.