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

Sass map strings are not using quoted keys #11

Open
alexanderflink opened this issue Jul 2, 2020 · 0 comments
Open

Sass map strings are not using quoted keys #11

alexanderflink opened this issue Jul 2, 2020 · 0 comments

Comments

@alexanderflink
Copy link

When rendering a sass string from a javascript object, the keys are not being put in quotes. This causes problems if the keys have names such as red or black. Here's an example:

const test = {
  key1: 'hej',
  key2: 'hej',
}

const sassMap = sassUtils.castToSass(test)
console.log(sassUtils.sassString(sassMap)) // (key1: hej, key2: hej)

It would be better if they keys were in quotes, as suggested by the Sass docs.
image

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