-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Addon-a11y - Disable accessibility tab in a single story #6849
Comments
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Whoopee!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.0-alpha.36 containing PR #6923 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Ermahgerd!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.0-alpha.37 containing PR #7333 that references this issue. Upgrade today to try it out! You can find this prerelease on the |
Describe the bug
I can't find a way to disable accessibility tab in a single story.
In
config.js
I have defined decoratoraddDecorator(withA11y)
and in some stories I want to disable this tab. For example I have a simple component like input without label, so I don't need to see violations related to missing label.I tried to use
disable
option as in info addon (tab is empty there), but it doesn't seem to work:and this code disables all rules not only in single story but in every one
And going further I have a second question. How to pass specific axe rules for only a single story?
Expected behavior
Hide or leave empty accessibility tab when
disable: true
option is passedSystem:
The text was updated successfully, but these errors were encountered: