Bugs around styled-components 4.0 beta
See original GitHub issueBug Report
Some features of styled-components 4.0.0 beta are broken when used inside a Docz document. I would open a bug to SC directly but the same code works fine in react-styleguidist so I’m not quite sure where I should open the issue.
The bugs seems to be mainly around the styled()
syntax of styled-components. Which I assume got changed a bit internally with 4.x.
Considering this file
https://github.com/eramdam/docz-repro-error/blob/master/test/hello.tsx
Here is how it’s supposed to look (and how it looks under styled-components 3.x):
Here is how it looks with styled-components 4.x installed:
Feel free to clone https://github.com/eramdam/docz-repro-error and alternate between the master
branch (4.x) and sc-v3
(3.x) to try.
I’d be happy to provide more details if needed.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top GitHub Comments
Sorry @eramdam, the rendering issue isn’t a bug from react-docgen, I’ll keep this openning 🙏
styled-components v4 somehow broke my app’s navigation as well as extending on base styles didn’t seem to work. No console errors or logs. I don’t think it’s related to docz though.