mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
Merge pull request #8969 from fraincs/next
Addon-docs: Fix `Preview` theming escape hatch
This commit is contained in:
commit
b751885ba5
@ -150,7 +150,7 @@ const Preview: FunctionComponent<PreviewProps> = ({
|
||||
const [expanded, setExpanded] = useState(isExpanded);
|
||||
const { source, actionItem } = getSource(withSource, expanded, setExpanded);
|
||||
const [scale, setScale] = useState(1);
|
||||
const previewClasses = className ? `${className} sbdocs-preview` : 'sbdocs-preview';
|
||||
const previewClasses = className ? `${className} sbdocs sbdocs-preview` : 'sbdocs sbdocs-preview';
|
||||
|
||||
if (withToolbar && Array.isArray(children)) {
|
||||
logger.warn('Cannot use toolbar with multiple preview children, disabling');
|
||||
|
Loading…
x
Reference in New Issue
Block a user