When ExpansionPanelSummary is being converted to a styled-component, the entire ExpansionPanel disappears.
ExpansionPanel should not disappear after ExpansionPanelSummary is converted to a styled-component. Just conversion of ExpansionPanel does not yield such results..
ExpansionPanel does not get rendered and it generally looks different in Chrome's Element inspector.
Link: https://codesandbox.io/s/olml3lkwwq
S. prefix from ExpansionPanelSummary - ExpansionPanel appears.I am simply trying to style all Material-UI components with styled-components.
| Tech | Version |
|--------------|---------|
| Material-UI/core | v1.4.3 |
| React | 16.4.2 |
| Browser | Chrome 70+ |
| TypeScript | 3.0.1 |
| Styled-Components | 3.4.2 |
@LAITONEN One line change and you are good to go:
S.ExpansionPanelSummary.muiName = "ExpansionPanelSummary";
We document it in https://material-ui.com/guides/composition/#wrapping-components.
Most helpful comment
@LAITONEN One line change and you are good to go:
We document it in https://material-ui.com/guides/composition/#wrapping-components.