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

core: & with some selectors produces an invalid result #222

Open
1 task
layershifter opened this issue Sep 27, 2022 · 0 comments
Open
1 task

core: & with some selectors produces an invalid result #222

layershifter opened this issue Sep 27, 2022 · 0 comments
Labels
🐞 bug Something isn't working

Comments

@layershifter
Copy link
Member

layershifter commented Sep 27, 2022

Comes from #178.

Griffel handles classes & pseudo classes selectors properly, for example:

 makeStyles({
  root: {
    '&.foo': { color: 'red' }
  },
});

Produces correct result ✅

.f1lw17ff.foo {
  color: red;
}

While &body:

makeStyles({
  root: {
    '&body': { color: 'red' }
  },
})

Produces a wrong result 🚨

.f115m9dlbody { /* 🤯 oops */
  color: red;
}
  • check also [data] selectors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant