A11y testing
Hi, something similar to this addon https://storybook.js.org/addons/@storybook/addon-a11y?
I think it could be a really nice feature
@Akryum I will like to take this one, since I need it for my product.
Any wish list?
We can probably take inspiration from the ally one. Maybe a good first step would be to do some discovery about the things we might need to add to the Plugin API.
@Akryum Is it possible to create a new tab through the Plugin API? Also how to add the UI inside the tab (for example a list of the accessibility violations and links)
That's thing that we would need to add to the Plugin API. Do you confirm you need the following for now?
- [x] Add a new tab
- [x] Render a component in it using the bundled Vue (integrate with the UI).
Yes, I think those two points will set the bases for plugins that need UI.
I wonder how we could access the current story document from the API ? With api.onPreviewStory?
I need to investigate if axe only works with a selector or if you can actually pass HTML, not sure
https://github.com/histoire-dev/histoire/discussions/240