Skip to content

Commit

Permalink
Merge pull request #19848 from jpzwarte/fix/regression-root-to-storyb…
Browse files Browse the repository at this point in the history
…ook-root

Fix regression in the `#root` to `#storybook-root` change
  • Loading branch information
ndelangen authored Nov 17, 2022
2 parents 7ca44e3 + f995b8c commit 4bf9d31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/ui/manager/src/components/preview/FramesRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ export const FramesRenderer: FC<FramesRendererProps> = ({
const active = getActive(refId);

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 {
'#storybook-root [data-is-storybook="false"]': {
'#root [data-is-storybook="false"]': {
display: 'none',
},
'#storybook-root [data-is-storybook="true"]': {
'#root [data-is-storybook="true"]': {
display: 'block',
},
};
Expand Down

0 comments on commit 4bf9d31

Please sign in to comment.