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

[SCSS] Support interpolation in quoted strings #301

Open
gregjacobs opened this issue Jan 14, 2020 · 0 comments
Open

[SCSS] Support interpolation in quoted strings #301

gregjacobs opened this issue Jan 14, 2020 · 0 comments

Comments

@gregjacobs
Copy link

Looks like interpolations aren't parsed inside quoted strings such as those provided to url(). For instance:

.my-bg {
    background: url("bg-#{$color}.gif");
}

The value node comes out as:

{
    "type": "value",
    "content": [
        {
            "type": "uri",
            "content": [
                {
                    "type": "string",
                    "content": "\"bg-#{$color}.gif\""  // <-- no parsing of interpolation
                }
            ]
        }
    ]
}

The parsing of the interpolation works correctly if the quotes are removed from inside the of url(), but of course we can't guarantee that our users will do that :)

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