-
-
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
withA11y decorator has been removed in V6 - migration docs are a bit vague when explaining how to use accessibility addon #11929
Comments
Updated the doc. Can you check again? |
Thanks, but still not working. I still get I've tried adding And, of course, I've removed the decorator from the story. |
Same for me |
I've updated my 2 test repos to demo the problem in Storybook V6 with Parcel V2: |
If the a11y tab is stuck to "initialize" and no error is displayed, make sure to update this: In main.js // .storybook/main.js
module.exports = {
addons: [
'@storybook/addon-a11y/register',
],
}; to // .storybook/main.js
module.exports = {
addons: [
'@storybook/addon-a11y',
],
}; Remove |
@shilman should we add @marie-maxime's note to the migration doc? |
Sorry to say @marie-maxime but it doesn't work for me. 😢 I've pushed change to my repo. |
Done some small fixes on a11y-addon on #12003 This might resolve your issues but haven't verified yet. @basher, I saw on your second repo that you used @tmeasday If I'm right, the migration for removing |
Thanks @tooppaaa - I'll keep my fingers crossed! 😄 |
@basher I did some digging on your repos.
I am not sure what you try to do is supported. Using your own iframe served from a custom page means storybook is not able to apply presets and inject addons code in your preview. Addon a11y and many others, needs to be present in both applications (manager & preview). |
@tooppaaa I'm using standalone/preview mode because I use Parcel to bundle my CSS/JS, not Webpack - see my original comment. This works with accessibility addon in Storybook v5.3 but not in v6. I understand that standalone is no longer supported, and I've had conversations previously with @shilman regarding Storybook server, and whether that would be a better solution to using Parcel bundler. I've also tried using Storybook composition in v6 instead of standalone/preview to see if that works better... just waiting for a CORS issue to be resolved. |
We changed how the addon id working to use channel instead. |
Will do... thanks. I really want to keep using Storybook, even though my specific use case is "unusual" (i.e. HTML stories + Parcel). 😉 |
CORS issue now fixed. However... 😢 |
Awesome ! In favor of closing as well to track DOM Nesting in the other issue. |
🎉 |
I upgraded to 6.0.21 and having the same issue with A11y being stuck ast 'initializing'. |
@LordRembo your best bet is upgrading to |
Alright, thanks. I was just going over the migration doc and stumbled upon info saying config.js was 'soft' deprecated in 5.3 :D |
The V6 migration docs indicate replacing the decorator with
addParameters({ ... })
.But where exactly?
main.js
which didn't work?config
orpreview
files - I tried adding them, but to no avail.Context
I'm using
@storybook/html
in standalone mode because I use Parcel to bundle my UI rather than Webpack.In V5.3, a simple HTML story would look something like this:
System:
The text was updated successfully, but these errors were encountered: