diff --git a/src/__stories__/JsonSchemaViewer.tsx b/src/__stories__/JsonSchemaViewer.tsx index c586d6d7..afd88d85 100644 --- a/src/__stories__/JsonSchemaViewer.tsx +++ b/src/__stories__/JsonSchemaViewer.tsx @@ -154,6 +154,7 @@ storiesOf('JsonSchemaViewer', module) schema={schema as JSONSchema4} defaultExpandedDepth={number('defaultExpandedDepth', 2)} onGoToRef={action('onGoToRef')} + className="sl-bg-canvas" /> diff --git a/src/components/shared/ChildStack.tsx b/src/components/shared/ChildStack.tsx index 25920bb5..dc9933a9 100644 --- a/src/components/shared/ChildStack.tsx +++ b/src/components/shared/ChildStack.tsx @@ -19,7 +19,7 @@ export const ChildStack = ({ className, RowComponent = SchemaRow, }: ChildStackProps) => ( - + {childNodes.map((childNode: SchemaNode, index) => ( {index > 0 && } diff --git a/src/components/shared/__tests__/Property.spec.tsx b/src/components/shared/__tests__/Property.spec.tsx index 97822bb4..cc6ba696 100644 --- a/src/components/shared/__tests__/Property.spec.tsx +++ b/src/components/shared/__tests__/Property.spec.tsx @@ -164,7 +164,7 @@ describe('Property component', () => { const wrapper = render(schema); expect(wrapper.html()).toMatchInlineSnapshot( - `"
array of objects
foo
bar
baz
"`, + `"
array of objects
foo
bar
baz
"`, ); });