Giter Site home page Giter Site logo

Comments (3)

joebentaylor avatar joebentaylor commented on May 27, 2024

Ive looked through the source files an managed to understand that breakpoints are set in the enums.js file.

However there are no pixel values. How on earth does this work?

currently in this repo your breakpoints look like:
SMALL: 'small', MEDIUM: 'medium', LARGE: 'large'

Where as in Foundations SCSS files there's a pixel value like so:
small: '320px', medium: '768px', large: '1024px'

Where on earth does SMALL: 'small' get defined as a pixel size????

from react-foundation.

pavanchaudhari avatar pavanchaudhari commented on May 27, 2024

@joebentaylor
hey Joe,

As I see the enum you referring to,

export const Breakpoints = { SMALL: 'small', MEDIUM: 'medium', LARGE: 'large', };

is being used just for deciding the className on the element from foundation css.

E.g. If you observe the tests, here is how the enum Breakpoints is being used (or supposed to be used)

const component = render(<ButtonGroup stackFor={Breakpoints.SMALL}/>);

and inside ButtonGroup all it does is

const className = createClassName({ 'stacked-for-small': props.stackFor === Breakpoints.SMALL,

and if we see the foundation scss file, we can find below

.button-group.stacked-for-small .button:last-child{margin-bottom:0}

so in above case it's about the size of a button, rather than specifying the actual breakpoint.
For modifying the breakpoints I suppose we need to make changes to the foundation SCSS.

from react-foundation.

hugovk avatar hugovk commented on May 27, 2024

Thanks for the report, however we are going to archive this repo because we're no longer using or maintaining it.

from react-foundation.

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.