question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Web Container Styled being applied to all fresnel divs when using responsive values

See original GitHub issue

Description

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:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
nandorojocommented, Sep 24, 2020

Let me know if this resurfaces, closing for now.

1reaction
nandorojocommented, Sep 23, 2020

This fixed some style issues on my app, good catch, I didn’t even realize that was causing it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found