![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@chanzuckerberg/axe-storybook
Advanced tools
[![Package Status](https://img.shields.io/npm/v/@chanzuckerberg/axe-storybook.svg)](https://www.npmjs.com/package/@chanzuckerberg/axe-storybook) ![Tests](https://github.com/chanzuckerberg/axe-storybook/workflows/Tests/badge.svg)
Command-line interface for running accessibility checks via axe-core on your Storybook stories.
If there are any violations, information about them will be printed and the command will exit with a non-zero exit code. That way, you can use this as automated accessibility tests on CI.
Originally based on @percy/storybook.
These will be used to determine development work and direction, and triage bugs and pull requests.
First, install the package
# via npm
npm install --save-dev @chanzuckerberg/axe-storybook
# or, if using Yarn
yarn add --dev @chanzuckerberg/axe-storybook
Second, add a script to your package.json that executes Storybook's build-storybook
command and runs axe-storybook
// In package.json
"scripts": {
"storybook:axe": "build-storybook && axe-storybook"
},
Assuming you've added the script in the install section above, you'll run this application with
# If using npm
npm run storybook:axe
# or, if using Yarn
yarn storybook:axe
The command-line interface has the following options.
Option | Default | Type | Description |
---|---|---|---|
--browser | chromium | chromium, firefox, or webkit | Which browser to run the tests in. |
--build-dir | storybook-static | string | Storybook static build directory. |
--headless | true | boolean | Whether to run headlessly or not. |
For example, to run non-headlessly on Firefox, you would run
# If using npm
npm run storybook:axe -- --headless false --browser firefox
# or, if using Yarn
yarn storybook:axe --headless false --browser firefox
Stories can use parameters to configure how axe-storybook handles them.
Prevent axe-storybook from running a story by using the disabled
parameter.
SomeStory.parameters = {
axe: {
disabled: true,
},
};
Prevent axe-storybook from running specific Axe rules on a story by using the disabledRules
parameter.
SomeStory.parameters = {
axe: {
disabledRules: ['select-name'],
},
};
FAQs
[![Package Status](https://img.shields.io/npm/v/@chanzuckerberg/axe-storybook.svg)](https://www.npmjs.com/package/@chanzuckerberg/axe-storybook) ![Tests](https://github.com/chanzuckerberg/axe-storybook/workflows/Tests/badge.svg)
We found that @chanzuckerberg/axe-storybook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.