Describe the bug
After importing Bootstrap CSS the background grid is no longer displayed.
To Reproduce
Steps to reproduce the behavior:
import 'bootstrap/dist/css/bootstrap.css'; to config.jsExpected behavior
I expected the background grid to be present.
Screenshots
N/A
Code snippets
N/A
System:
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!
The problem seems to relates to the background on the body of the iFrame being set to color other than transparent. Currently resetting the background color after importing bootstrap seem to have helped.
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!
I think this can be safely closed. Bootstrap sets body background, resetting it manually for usage in Storybook sounds like a proper solution.
The other solution is to change storybook to set a transparent body background using !important. But I'm not sure this is reasonable.
.storybook/config.js:
import 'bootstrap/dist/css/bootstrap.css'
import './reset.css'
...
.storybook/reset.css:
body {
background-color: transparent;
}
Most helpful comment
.storybook/config.js:
.storybook/reset.css: