From 61bc333658eee7f7c20d4a5397c9c70e8640b6e3 Mon Sep 17 00:00:00 2001 From: Noah Trenaman Date: Mon, 20 Jan 2020 16:05:46 -0500 Subject: [PATCH] emotion styling for DemoCanvasWidget background Small fix to add support for customizing background color with `background` property. --- .../diagrams-demo-gallery/demos/helpers/DemoCanvasWidget.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/diagrams-demo-gallery/demos/helpers/DemoCanvasWidget.tsx b/packages/diagrams-demo-gallery/demos/helpers/DemoCanvasWidget.tsx index ff0af2f..b27bc9b 100644 --- a/packages/diagrams-demo-gallery/demos/helpers/DemoCanvasWidget.tsx +++ b/packages/diagrams-demo-gallery/demos/helpers/DemoCanvasWidget.tsx @@ -9,7 +9,7 @@ export interface DemoCanvasWidgetProps { namespace S { export const Container = styled.div<{ color: string; background: string }>` height: 100%; - background-color: rgb(60, 60, 60) !important; + background-color: ${p => p.background}; background-size: 50px 50px; display: flex;