Skip to content

Commit 1c69efe

Browse files
Ikuni17kfirpeled
andcommitted
[SB] Fix graph layout stories (#217766)
## Summary This fixes the graph layout stories not rendering properly after #214684. Open to a better or preferred fix as I'm not familiar with these components. There was a console warning: ```js [React Flow]: The React Flow parent container needs a width and a height to render the graph. Help: https://reactflow.dev/error#004 ``` [Storybook preview link](https://ci-artifacts.kibana.dev/storybooks/pr-217766/cloud_security_posture_graph/index.html?path=/story/components-graph-components-graph-layout--simple-api-mock) --------- Co-authored-by: Kfir Peled <[email protected]> (cherry picked from commit a7796cd)
1 parent 41b029d commit 1c69efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/.storybook/decorators/global_styles_decorator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Global, css } from '@emotion/react';
1010
const globalStyles = css`
1111
html,
1212
body,
13-
#root {
13+
#storybook-root {
1414
width: 100%;
1515
height: 100%;
1616
margin: 0;

0 commit comments

Comments
 (0)