rebass icon indicating copy to clipboard operation
rebass copied to clipboard

Components use first theme provider instead of the closes one

Open tbntdima opened this issue 4 years ago • 0 comments

Here is a basic example:

      <ThemeProvider
        theme={{theme}
      >
         <ThemeProvider
           theme={{ ...theme, breakpoints: ["40em", "100em", "200em"] }}
         >
            <Box /> // it's using first theme breakpoints
        </ThemeProvider>
     </ThemeProvider>

Is it how it suppose to work, or I am doing something wrong?

tbntdima avatar Apr 18 '20 15:04 tbntdima