Skip to content

Conversation

@siddharthkp
Copy link
Contributor

Merge after #3292

Moved all the logic of ./storybook/theme to a <ThemeProvider>. This serves as a boundary to a part of the interface which is getting redesigned. Eventually our entire application can be wrapped in just 1 of these.

This also gives us the chance to apply globals inside the boundary.

@siddharthkp siddharthkp marked this pull request as ready for review January 8, 2020 13:26
@lbogdan lbogdan temporarily deployed to pr3294 January 8, 2020 13:31 Inactive
@lbogdan
Copy link
Contributor

lbogdan commented Jan 8, 2020

Build for latest commit f467bdf is at https://pr3294.build.csb.dev/s/new.

margin: 0;
background-color: ${props =>
props.theme.colors.sideBar.background} !important;
color: ${props => props.theme.colors.sideBar.foreground} !important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its missing the border-box thing

const GlobalStyle = createGlobalStyle`
  ${global};
  html body {
    font-family: 'Inter', sans-serif;
    background-color: ${theme.colors.sideBar.background};
    color: ${theme.colors.sideBar.foreground};
    margin: 0;
    padding: 20px;

    * {
      box-sizing: border-box;
    }
  }
`;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, will merge with master and bring this along

Copy link
Contributor Author

@siddharthkp siddharthkp Jan 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added box-sizing, removed padding though. Do we need it on body? (I prefer not having anything so that the component behaves in isolation

@siddharthkp siddharthkp added the UI label Jan 8, 2020
@lbogdan lbogdan temporarily deployed to pr3294 January 8, 2020 14:00 Inactive
@SaraVieira SaraVieira merged commit 8cbbe54 into master Jan 8, 2020
@SaraVieira SaraVieira deleted the components-theme-provider branch January 8, 2020 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants