Skip to content

Commit

Permalink
feat(component): rename GlobalStyle to GlobalStyles (#126)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `GlobalStyle` is now `GlobalStyles`
  • Loading branch information
deini authored Aug 5, 2019
1 parent 1c4fbdc commit e7a231e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/big-design/src/components/GlobalStyle/index.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { theme as defaultTheme } from '@bigcommerce/big-design-theme';
import { normalize } from 'polished';
import { createGlobalStyle } from 'styled-components';

export const GlobalStyle = createGlobalStyle`
export const GlobalStyles = createGlobalStyle`
${normalize()}
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600');
Expand All @@ -12,4 +12,4 @@ export const GlobalStyle = createGlobalStyle`
}
`;

GlobalStyle.defaultProps = { theme: defaultTheme };
GlobalStyles.defaultProps = { theme: defaultTheme };
1 change: 1 addition & 0 deletions packages/big-design/src/components/GlobalStyles/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './GlobalStyles';
2 changes: 1 addition & 1 deletion packages/big-design/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export * from './Checkbox';
export * from './Dropdown';
export * from './Flex';
export * from './Form';
export * from './GlobalStyle';
export * from './GlobalStyles';
export * from './Grid';
export * from './Input';
export * from './Link';
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GlobalStyle, Grid } from '@bigcommerce/big-design';
import { GlobalStyles, Grid } from '@bigcommerce/big-design';
import { createTheme } from '@bigcommerce/big-design-theme';
import App, { Container } from 'next/app';
import Head from 'next/head';
Expand Down Expand Up @@ -38,7 +38,7 @@ export default class MyApp extends App {
</style>
<ThemeProvider theme={theme}>
<>
<GlobalStyle />
<GlobalStyles />
<Grid template={gridTemplate} backgroundColor="secondary10" gap="0" style={{ minHeight: '100%' }}>
<Grid.Item area="nav" elevation="raised">
<SideNav />
Expand Down

0 comments on commit e7a231e

Please sign in to comment.