Web Container Styled being applied to all fresnel divs when using responsive values
See original GitHub issueDescription
When using the dripsy fresnel-2 branch the webContainerSx prop is applying styles to all fresnel divs, not just the current breakpoint when multiple fresnel divs a present.
Example
Component:
<Container
webContainerSx={{ flex: 1 }}
sx={{ justifyContent: "center", alignItems: "center", flex: 1 }}
>
<Text>Here</Text>
</Container>
Theme value:
container: {
px: ["base", "large", "huge"],
},
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Dripsy v1 release notes · Issue #34 - GitHub
The solution used in this update is to wrap every responsive element rendered on the web with a div at each breakpoint.
Read more >Using CSS media queries in React with Fresnel
Here's a look at the Fresnel package, one of the most efficient ways to implement responsive design for server-side rendering.
Read more >Server-Rendering Responsively - Artsy Engineering
This article describes the tools we use on artsy.net to combine SSR and responsive design. Tool 1: styled-system. We handle the majority of ......
Read more >Responsive Components: a Solution to the Container Queries ...
Container queries is a proposal that would allow web developers to style DOM elements based on the size of a containing element rather...
Read more >Responsive image flexbox with React and styled components
This is just the basic styling you need to get the same distribution of items of that grid: <body id='root'> <div class='flex-box'> <div...
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

Let me know if this resurfaces, closing for now.
This fixed some style issues on my app, good catch, I didn’t even realize that was causing it.