-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix autoprefixer with storybook #3
Conversation
Related to elastic#267 |
Thanks @nickofthyme for that, I was trying to upgrade to storybook 5 few times in the past but there was always some some problems on the proptypes not rendered (that are still not rendered in our storybook v4 :( )
|
@nickofthyme I've also another request: can we keep the original scss file name without |
I think you can use the following:
and change the import of the
|
@markov00 I made the fixes you recommended including...
storiesOf('Grids', module)
.add(basicExample.title, basicExample.story)
.add(multiAxis.title, multiAxis.story); I also tried to upgrade to Screenshots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
package.json
Outdated
"@types/storybook__addon-actions": "^3.4.3", | ||
"@types/storybook__addon-info": "^4.1.2", | ||
"@types/storybook__addon-knobs": "^5.0.3", | ||
"@types/storybook__addon-options": "^4.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove this type as we already removed addon-options.
Summary
storybook@5
to see if that would resolve the issue but it didn't 😞. But I figured we keep the changes anyway.webpack.config.js
to correct lazy-loading issue with storybook and autoprefixer.@markov00 & @emmacunningham Can you check my changes to make sure it doesn't break anything?
The only thing I noticed was that with storybook v5 the
story
tab next to theknobs
tab that shows the code of the story, was VERY VERY slow. I'm thinking this is just due to all the stories being in the same file, but not sure.Screenshot
Image below shows the legend in storybook correctly prefixes
mask-image
under theechLegendListContainer
class.Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.