Open thisisauniquegithubusername opened 8 months ago
Current behavior:
If a component with a theme prop is styled, the theme prop can no longer be used
To reproduce: https://codesandbox.io/p/sandbox/crazy-leaf-jfykrj?file=%2Fsrc%2FEditor.tsx
const StyledEditor = styled(CodeMirror)``; function Editor({ input }) { return ( <div> <StyledEditor value={input} theme={dracula} /> <CodeMirror value={input} theme={dracula} /> </div> ); }
Expected behavior:
There should be some workaround to use the theme prop. Right now there is an error trying to build the code locally and in codesandbox the theme is not applied
Environment information:
react
@emotion/react
+1 I also have this issue
Current behavior:
If a component with a theme prop is styled, the theme prop can no longer be used
To reproduce: https://codesandbox.io/p/sandbox/crazy-leaf-jfykrj?file=%2Fsrc%2FEditor.tsx
Expected behavior:
There should be some workaround to use the theme prop. Right now there is an error trying to build the code locally and in codesandbox the theme is not applied
Environment information:
react
version: 18.2.0@emotion/react
version: 11.11.1