From 53c9320220256a2cbbc07db78d7fb1ce78bf5ac6 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Thu, 10 Oct 2024 22:01:39 -0400 Subject: [PATCH] Added a11y addon to storybook. --- .storybook/main.js | 1 + package-lock.json | 27 +++++++++++++++++++++++++++ package.json | 1 + 3 files changed, 29 insertions(+) diff --git a/.storybook/main.js b/.storybook/main.js index 1c12820..10f29e9 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -8,6 +8,7 @@ const config = { "@storybook/addon-webpack5-compiler-swc", "@storybook/addon-links", "@storybook/addon-essentials", + "@storybook/addon-a11y", "@chromatic-com/storybook", "@storybook/addon-interactions", "storybook-addon-remix-react-router", diff --git a/package-lock.json b/package-lock.json index d1a2828..feacc65 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ }, "devDependencies": { "@chromatic-com/storybook": "^1.9.0", + "@storybook/addon-a11y": "8.3.2", "@storybook/addon-essentials": "^8.3.2", "@storybook/addon-interactions": "^8.3.2", "@storybook/addon-links": "^8.3.2", @@ -987,6 +988,23 @@ "node": ">=14.0.0" } }, + "node_modules/@storybook/addon-a11y": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/@storybook/addon-a11y/-/addon-a11y-8.3.2.tgz", + "integrity": "sha512-i0qyMp+MxzJ3UY3Absqwxhry4JqZo9yk1XLWld7hJpfAzmrulnaIctudQ940/OMFPcEIsOVdg8euz0IGW3HTNw==", + "dev": true, + "dependencies": { + "@storybook/addon-highlight": "8.3.2", + "axe-core": "^4.2.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/storybook" + }, + "peerDependencies": { + "storybook": "^8.3.2" + } + }, "node_modules/@storybook/addon-actions": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/@storybook/addon-actions/-/addon-actions-8.3.2.tgz", @@ -2930,6 +2948,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/axe-core": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.10.0.tgz", + "integrity": "sha512-Mr2ZakwQ7XUAjp7pAwQWRhhK8mQQ6JAaNWSjmjxil0R8BPioMtQsTLOolGYkji1rcL++3dCqZA3zWqpT+9Ew6g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/babel-plugin-emotion": { "version": "10.2.2", "resolved": "https://registry.npmjs.org/babel-plugin-emotion/-/babel-plugin-emotion-10.2.2.tgz", diff --git a/package.json b/package.json index f5e0655..553c5cb 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "license": "ISC", "devDependencies": { "@chromatic-com/storybook": "^1.9.0", + "@storybook/addon-a11y": "8.3.2", "@storybook/addon-essentials": "^8.3.2", "@storybook/addon-interactions": "^8.3.2", "@storybook/addon-links": "^8.3.2",