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

Unexpectedly removed ordinal arguments in mixins when mixing with named arguments #14

Closed
viko16 opened this issue Nov 30, 2017 · 1 comment
Labels

Comments

@viko16
Copy link

viko16 commented Nov 30, 2017

simple demo

mix($left = 0, $right = 0, $top = initial)
  position absolute
  left $left
  right $right
  top $top

.test
  mix(5, $top: 6)

expected

image

http://stylus-lang.com/try.html#?code=mix(%24left%20%3D%200%2C%20%24right%20%3D%200%2C%20%24top%20%3D%20initial)%0A%20%20position%20absolute%0A%20%20left%20%24left%0A%20%20right%20%24right%0A%20%20top%20%24top%0A%0A.test%0A%20%20mix(5%2C%20%24top%3A%206)

but, actual..

image

variables which in front of specified one $top has gone. 😢

@ThisIsManta ThisIsManta changed the title loss variables in mixins/functions Unexpectedly removed ordinal arguments in mixins when mixing with named arguments Dec 3, 2017
@ThisIsManta
Copy link
Owner

ThisIsManta commented Dec 3, 2017

Sorry to keep you waiting. This is fixed in version 2.6.0.

Here's the proof:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants