From d6744908961a5d2ca608d7a7ef4c58deb26b0af1 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 13 Apr 2021 16:20:03 +1000 Subject: [PATCH] Serve assets (css+roboto font) for the preview iframe - Thus, component can inherit from all CSS rules, rendering is as close as to the truth - Still need to import `admin` css file if we want to create components for admin part (and we probably want too). This will probably lead to overlapping problems between all CSS rules... - This is a bit hacky, but as our CSS files are packed by rails I didn't find any better solution. We could also use any sass loader, but with this solution we can be confident on the fact that the generated CSS is the one used by the server that finally displays the component --- .storybook/preview-head.html | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .storybook/preview-head.html diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html new file mode 100644 index 0000000000..1fce9472e7 --- /dev/null +++ b/.storybook/preview-head.html @@ -0,0 +1,2 @@ + +