Skip to content

Commit

Permalink
Load font in decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
tchock committed Feb 16, 2021
1 parent f597922 commit d9db6e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .bojagi/decorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ const jss = create({

const theme = createMuiTheme({});

console.log('test');
var fontCssLink = document.createElement('link');
fontCssLink.setAttribute('rel', 'stylesheet');
fontCssLink.setAttribute('type', 'text/css');
fontCssLink.setAttribute('href', 'https://fonts.googleapis.com/css?family=Roboto:300,400,400italic,500,700&display=swap');
document.head.appendChild(fontCssLink);

export default (Story) => (
<StyledEngineProvider injectFirst>
Expand Down

0 comments on commit d9db6e7

Please sign in to comment.