Error when using npm link to test my module which uses styled-components. It…
I have created a npm module (created with nwb) where I use styled-components. In my consuming app, I'm also using styled-components. The problem is. Everything works fine when installing my module via npm install. However, when using npm link the following error message occurs…
Jest snapshots failing in CI because of added vendor prefixes
Hello everybody 👋 I have some Jest snapshots that work totally fine locally but fail in our CI pipeline: When I run these tests locally, the snapshots do not include vendor prefixes, but when running them in our CI server, they do: …
Tailwind vs Styled Components
I’ve used emotion/styled and SC for a while. I see a lot of hype around tailwind css and similar atomic css libraries. It looks like you could use SC and TW together, but you’d likely want most of your code in TW if you decided it was the better approach. What are people’s…
Is there any problem with this part of the docs?
Check this section in the doc: https://www.styled-components.com/docs/basics#animations Is the static prop (type) ever passed down to the component? Or there is a typo here? I don't see it making any different to the rendered component.
Trialing style-components but it is breaking tests
I have started refactoring a portion of the codebase where I work to demonstrate the potential of styled-components. However our tests are failing unless they are wrapped inside a ThemeProvider. Is there anyway to avoid having to do this? Does storing the theme inside of context…
Targeting Siblings (Checkbox)
Hello, I have a problem with targeting the sibling of a check input. The Checkbox should look like a button, so I want the appearance of the "Name" to change when checked: This does not work, what am I doing wrong? I also tried to select the Checkbox in Name like this: