Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating of class names #8

Open
furagi opened this issue Apr 24, 2017 · 0 comments
Open

Generating of class names #8

furagi opened this issue Apr 24, 2017 · 0 comments

Comments

@furagi
Copy link

furagi commented Apr 24, 2017

Hi! How works system of generating names of classes? It looks like I have collisions.
first

second

As you can see, these two are different blocks. Here're the sources of style objects:

  mainArea: {
    "@media (min-width: 900px)": {
      paddingTop: "30px",
      paddingRight: "50px",
      paddingLeft: "50px",
      display: "flex"
    },
  },
  root: {
    "@media (min-width: 900px)": {
      display: "none"
    },
  },

Probably, it's related to both of them contain only the same media queries (but with different content). After I changed first class (I mean mainArea) content to this:

 mainArea: {
    mainArea: true,
    "@media (min-width: 900px)": {
      paddingTop: "30px",
      paddingRight: "50px",
      paddingLeft: "50px",
      display: "flex"
    },

Everything works as expected. Of course, I got incorrect rule main-area: true, but I'm OK with this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant