Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 139805

Styled component, breaks on google chrome

$
0
0

Styled component breaks on google chrome when changing the prop (form true to false for example). When props are changed styled component outputs class with no CSS inside, while on Firefox everything works as expected.

Here is the very part of the code

const PeriodsHolder = styled.div`
    justify-content: ${props => (props.childCount ? "baseline" : "center")}
    flex-wrap: nowrap !important;
    overflow-x: scroll;
    margin: 0 -5px;
    min-height: 90vh;
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    @media(min-width: 980px){
      flex: 0 0 75%;
      max-width: 75%;
  }
`

Viewing all articles
Browse latest Browse all 139805

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>