-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feat/storybook atoms #405
Feat/storybook atoms #405
Conversation
Hi @ekas, great work here. Looks really good, so happy we're starting to document our components, and great to see them in Storybook. I've looked through this and read up on storybook. I have quite a few questions and ideas. I heard from @helloanil that you're joining my office hours tonight? Let's go through this together then. |
@helloanil, @ekas, I made a little discovery that can be helpful in figuring out what's going on with the |
@ericbolikowski Great investigation and findings. I took the investigation one step further and dived deep in the code and noticed the same line @ekas has been adding in some of the files: import 'bulma/css/bulma.min.css' Unfortunately, this line imports bulma css as a global stylesheet for all the stories, including our Button atom. As we're using a base classname for our Button atom, I've spent some time understanding if ingesting those styles is possible for only some stories, but unfortunatey that's not possible as can be seen here: storybookjs/storybook#729 => This issue is open since Mar 2017, CRAZY! I was going to come and comment here that we're doomed and without removing Bulma fixing this would be impossible. However, one last trick came to my mind, which is changing the base classname from We still need to cut our ties with Bulma, at least in the Design System level. All our Design System components should be building blocks, supporting tokenized styling: https://styled-system.com/getting-started |
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.
Excellent research, explanation and final solution @helloanil 🥳 a really KISS workaround. Let's get this baby merged.
What Github issue does this PR relate to? Insert link.
What should the reviewer know?
Have all stories of atoms.