-
-
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
Info addon doesn't inherit styling #5723
Comments
@B3zo0 Thanks for the report. Bugfix PRs are welcome for this! |
@shilman I'll take a crack at this one if no one else is working on it. |
Awesome @mateoholman, thanks for taking this on! Our storybook dev setup is documented here https://github.com/storybooks/storybook/blob/next/CONTRIBUTING.md#development-guide and feel free to get help here or on our Storybook Discord/Slack if you run into issues. 🙇 |
I was able to workaround this with this code in config.js: addDecorator(storyFn => (
<ThemeProvider theme={themes.normal}>
<Global styles={createReset} />
{storyFn()}
</ThemeProvider>
)) |
Yo-ho-ho!! I just released https://github.com/storybooks/storybook/releases/tag/v5.0.0-rc.8 containing PR #5759 that references this issue. Upgrade today to try it out! Because it's a pre-release you can find it on the |
Unfortunately this appears to be still an issue in the current version 5.0.0. 😕 |
I think, I found the commit responsible for this issue: c7f624e#diff-36f288162c3cc9bd518d680f366bbe54L54 You can add the font family to that |
Facing the same issue, when passing in a custom Notably, I am trying to apply |
Ta-da!! I just released https://github.com/storybooks/storybook/releases/tag/v5.1.0-alpha.12 containing PR #6186 that references this issue. Upgrade today to try it out! Because it's a pre-release you can find it on the Closing this issue. Please re-open if you think there's still more to do. |
w00t!! I just released https://github.com/storybooks/storybook/releases/tag/v5.0.4 containing PR #6186 that references this issue. Upgrade today to try it out! |
Describe the bug
In v4 the info inherited the base font-family and stylings. In v5 it does not.
To Reproduce
Steps to reproduce the behavior:
Use info addon.
Expected behavior
I expect the behavior from v4 where the font-family is the same as in the outer panels.
Screenshots
v5
v4
System:
The text was updated successfully, but these errors were encountered: