Skip to content

Commit

Permalink
fix(storybook): added missing global styles including fonts, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOGo committed Dec 4, 2018
1 parent 9371465 commit 80efc6f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ import 'document-register-element'; // ES2015
import '@ungap/custom-elements-builtin';
import { storiesOf } from '@storybook/html';

import globalStyles from '../index.scss';

import './tables';

const styleNode = document.createElement('style');
const styleText = document.createTextNode(globalStyles);

styleNode.appendChild(styleText);

// append directly to head
document.head.appendChild(styleNode);

storiesOf('Organism', module);

storiesOf('Molecules', module);
Expand Down

0 comments on commit 80efc6f

Please sign in to comment.