Open mathtev opened 2 months ago
After migrating to styled components v6 I cannot use a dark theme for antd Menu even though I am not assigning any additional styles:
const StyledMenu = styled(Menu)``; // as a result I get light theme instead of dark theme <StyledMenu theme="dark" mode="horizontal" items={[ { key: 'form', label: 'Form' }, { key: 'settings', label: 'Settings' }, ]} /> // When not using styled components dark theme is applied correctly <Menu theme="dark" mode="horizontal" items={[ { key: 'form', label: 'Form' }, { key: 'settings', label: 'Settings' }, ]} />
Using styled-components should not have any side effects like overwriting styles that I did not specify
Some styles are overwritten by styled-components
related to: https://github.com/styled-components/styled-components/issues/4182
Environment
System:
Binaries:
npmPackages:
Reproduction
After migrating to styled components v6 I cannot use a dark theme for antd Menu even though I am not assigning any additional styles:
Expected Behavior
Using styled-components should not have any side effects like overwriting styles that I did not specify
Actual Behavior
Some styles are overwritten by styled-components