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

grid-area values are replaced with variables #2752

Open
IdkGoodName opened this issue Jan 17, 2023 · 0 comments
Open

grid-area values are replaced with variables #2752

IdkGoodName opened this issue Jan 17, 2023 · 0 comments

Comments

@IdkGoodName
Copy link

To reproduce:

info = #0000FF

.class_parent
    display: grid
    grid-template-areas: "icon title" "info info"
    .class_info
        grid-area: info

Current behavior:

It replaces info value in grid-area with info variable, which causes it to compile to grid-area: #0000FF. This looks something like this after compiling:

.class_parent {
    display: grid;
    grid-template-areas: "icon title" "info info";
}
.class_parent .class_info {
    grid-area: #0000FF;
}

Expected behavior:

Leaving info in grid-area and not modifying it. I guess it is expected to replace it usually in Stylus and it would be consistent of it, but for something like grid-area this doesn't entirely make sense.

Environment information:

  • stylus version: 0.56.0
  • nodejs version: 19.4.0
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