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 functions to not not support multiple keys #487

Closed
MrDevinB opened this issue Oct 7, 2020 · 1 comment
Closed

sass:map functions to not not support multiple keys #487

MrDevinB opened this issue Oct 7, 2020 · 1 comment

Comments

@MrDevinB
Copy link

MrDevinB commented Oct 7, 2020

It appears that the documentation for sass:map is incorrect. Passing multiple keys into map.get results in an error: Error: Only 2 arguments allowed, but 3 were passed.

I only tested a couple map functions which both resulted in similar errors. It seems as though all map functions only allow two arguments to be passed in.

<% example(autogen_css: false) do %>
$config: (a: (b: (c: d)));
@debug map.get($config, a, b, c)); // d
===
$config: (a: (b: (c: d)))
@debug map.get($config, a, b, c)) // d
<% end %>

Sass Implementation

dart-sass: v1.26.11

@nex3
Copy link
Contributor

nex3 commented Oct 7, 2020

These functions are part of Dart Sass 1.27.0, which is in the process of being released right now.

@nex3 nex3 closed this as completed Oct 7, 2020
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

2 participants