I have the following decorator in my stories:
export default {
title: 'Components/Button',
decorators: [storyFn => <div style={{ backgroundColor: 'black', padding: '24px' }}>{storyFn()}</div>],
};
This is because the elements support dark mode out of the box so need a black background when displayed in the Docs...
However I only want this when in Dark Mode...
So I need something like: But it doesn't like that syntax (obviously)... how can you add media queries into the decorator?
~
export default {
title: 'Components/Button',
decorators: [storyFn =>
};
~
Anyone got any ideas on how to solve this?
馃槵 pretty please? 鉂わ笍
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!
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!
Did you manage to solve this issue?
Most helpful comment
馃槵 pretty please? 鉂わ笍