From 923399155c798bb431524862385c7f855919d113 Mon Sep 17 00:00:00 2001 From: Osipov Vladimir Date: Fri, 28 Dec 2018 12:13:26 +0300 Subject: [PATCH] feat(global): add ability to customize global css --- src/EightBaseBoostProvider.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/EightBaseBoostProvider.js b/src/EightBaseBoostProvider.js index a0594975..05eb4b43 100644 --- a/src/EightBaseBoostProvider.js +++ b/src/EightBaseBoostProvider.js @@ -1,6 +1,7 @@ // @flow import React from 'react'; +import { injectGlobal } from 'emotion'; import { ThemeProvider } from 'emotion-theming'; import { IconsProvider } from './components/Icon/IconsProvider'; import { ModalProvider } from './components/Modal/ModalProvider'; @@ -23,6 +24,12 @@ class EightBaseBoostProvider extends React.Component { + if (this.theme.components[name].globals) { + injectGlobal(this.theme.components[name].globals); + } + }); } render() {