mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Merge pull request #19848 from jpzwarte/fix/regression-root-to-storybook-root
Fix regression in the `#root` to `#storybook-root` change
This commit is contained in:
commit
4bf9d31c0c
@ -58,12 +58,12 @@ export const FramesRenderer: FC<FramesRendererProps> = ({
|
|||||||
const active = getActive(refId);
|
const active = getActive(refId);
|
||||||
|
|
||||||
const styles = useMemo<CSSObject>(() => {
|
const styles = useMemo<CSSObject>(() => {
|
||||||
// add #storybook-root to make the selector high enough in specificity
|
// add #root to make the selector high enough in specificity
|
||||||
return {
|
return {
|
||||||
'#storybook-root [data-is-storybook="false"]': {
|
'#root [data-is-storybook="false"]': {
|
||||||
display: 'none',
|
display: 'none',
|
||||||
},
|
},
|
||||||
'#storybook-root [data-is-storybook="true"]': {
|
'#root [data-is-storybook="true"]': {
|
||||||
display: 'block',
|
display: 'block',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user