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

[Bug] grid-template identifiers do not get transformed (with CSS modules) when var() is used #762

Open
mkrause opened this issue Jun 22, 2024 · 0 comments

Comments

@mkrause
Copy link

mkrause commented Jun 22, 2024

See Playground:

.test {
  grid-template: "test" var(--foo);
  grid-template: "test" 1fr;
}

Results in:

.EgL3uq_test {
  grid-template: "test" var(--foo);
  grid-template: "EgL3uq_test" 1fr;
}

Note how this works as expected when 1fr is specified as size, but when var(--foo) is specified the template area name is left as a global identifier "test". This makes it impossible to use grid-template with var(), because the grid-area identifier will still be transformed, preventing the area from being assigned.

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