GithubHelp home page GithubHelp logo

Comments (5)

dragma avatar dragma commented on September 10, 2024

It seems you are right !
@damassi what do you think ?
Unfortunately, I have no time right now to test this, maybe tomorrow !

from styled-bootstrap-grid.

damassi avatar damassi commented on September 10, 2024

Hi @tomhonig - It should be props.theme.grid.breakpoints, as seen in our theme here: https://github.com/artsy/palette/blob/master/src/Theme.tsx#L94-L99.

I think the issue you might be seeing is a bug related to the media helper. On our end we use our own custom one: https://github.com/artsy/palette/blob/master/src/helpers/media.ts

from styled-bootstrap-grid.

dragma avatar dragma commented on September 10, 2024

I'm on my phone, in a bus. I'll explain with more details later if you need it.

As far as I can see on my tiny screen, I think that you are right @tomhonig. We should read the styledBootstrapGrid object instead of the grid one.

The reason why the props.theme.grid object works in @damassi case is because, at the end, the props.theme object is shared between the ThemeProvider and the GridThemeProvider.

I will experience this tonight (or tomorrow) and I'll come back with more answers.

I confess, I don't need to use custom breakpoints on my different projects. :$

from styled-bootstrap-grid.

damassi avatar damassi commented on September 10, 2024

@dragma - one thing that I think would simplify this grid approach is removing the GridThemeProvider component completely. Its not needed since one has access to the styled-components theme provider, and the settings set there are accessible from within the lib. I keep meaning to PR this change back, but it would be a major version breaking change. It would simplify things considerably though.

from styled-bootstrap-grid.

tomhonig avatar tomhonig commented on September 10, 2024

Thank you for your replies!
Using ThemeProvider instead of the GridThemeProvider solved it:)

from styled-bootstrap-grid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.