v3.1.0 Breaks some styles
See original GitHub issueVersion
styled-components: 3.1.0
Reproduction
I use styled-components
with Slate, though the issue persists across the app, whether with or without Slate.
Steps to reproduce
I don’t have exact steps to reproduce yet, but I suspect that this happens when there’s a lot of nesting going on with components. I use a fair amount of HOC with styled-components (i.e. const Caption = styled(PictureCaption)''
).
Expected Behavior
I haven’t updated the production website for 3.1.0 (it’s at 3.0.2) - you can see how things should ideally look there - www.analog.cafe - all the code for this website is open-source, not sure if that’s helpful (It’s not well-documented at all) but you can have a look at it here: https://github.com/dmitrizzle/Analog.Cafe
Actual Behavior
Things do get ugly when I test the new version:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
CSS · Bootstrap 3.1.0 Documentation - BootstrapDocs
Bootstrap makes use of certain HTML elements and CSS properties that ... Instead of adding on optional mobile styles, they're baked right into...
Read more >Releases - styled-components
Because styled-components allows any kind of prop to be used for styling (a trait shared by ... Hotfix ReactNative support, which was broken...
Read more >SciTE4AutoHotkey v3.1.0 - AutoHotkey Community
Help file word lookup is currently broken as a result of (not so) recent changes in AutoHotkey's CHM file. Debugging AutoHotkey v2 scripts...
Read more >styler 1.0.0 - Tidyverse
styler can style text, single files, packages and entire R source ... the same before and after styling, as only spaces and line...
Read more >Hueman theme v3.1.0 release note - Press Customizr
This has create an issue that could disable some custom rules that you've added to your child theme style.css. This is now fixed...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@strothj that appears to be invalid CSS: https://codepen.io/anon/pen/rJNXrz
According to a few stackoverflow articles I was reading, nested media queries are technically in the CSS3 spec but I guess most browsers don’t have support for them.
@oyeanuj yeah that’s consistent,
insertRule
is only used in production because it doesn’t allow you to edit styles from the DevTools.I think this is a duplicate of #1473 so I’m going to close it in an effort to keep the discussion about this bug somewhere centralized, please follow that issue for updates! 🙏