-
Notifications
You must be signed in to change notification settings - Fork 2
Fix Sass deprecation warning re: reverse-gradient function. #46
Conversation
I didn't know about |
So to clarify since Sass 3.4.10 you can pass non-string value only? |
@nastiatikk Yes, in 3.4.10+ you can’t pass a list to |
I'm fine with this change. If the usecase is no longer supported (via deprecation) it's probably a good idea that we fix our code to reflect that. |
I just haven't tested the change yet. |
@jeffkamo Just to be clear, there was never a “use case” for passing a Sass list to |
Yup, that's basically what I meant. I suppose I should've said "non-use case" instead. |
🙇 |
This change sounds reasonable |
I'm sure I must have done that for a reason though... 🐙 |
@kpeatt Hi there 😄. I can see it being done as insurance, in case the list itself could be a string. Re-reading the code again, it seems like for some code paths that could be the case. We do need to change something here, but probably need to be more careful about it, and have a test for it. Let me look at this again and make sure. |
Opened #47 until I can write a more careful PR. |
Since Sass 3.4.10 (January), passing anything other than a non-string value to the
unquote
function is deprecated. This affects thereverse-gradient
function, which tries to pass a list throughunquote
. This PR removes this usage ofunquote
.Status: Ready to merge
Reviewers: @jeffkamo @avelinet @cole-sanderson @mlworks @yourpalsonja @nastiatikk
Ticket: N/A
Linked PRs: N/A
Changes
reverse-gradient
.How to test-drive this PR
npm install && bower install
to ensure dependencies are installedgrunt
to compile Sasstest/index.html
file and verify that the reverse-gradient function still works.Research resources
unquote
deprecation warning