Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Linear-gradients do not work with html color values that include alpha #78

Closed
RandomGHUser opened this issue Jul 6, 2018 · 2 comments
Closed

Comments

@RandomGHUser
Copy link

.content {
    background: linear-gradient(#000000af, #0000009f);
}

returns

Compilation Error
Error: Invalid CSS after "...inear-gradient(": expected expression (e.g. 1px, bold), was "#000000af, #0000009"
        on line 288 of sass/c:\test\sass\header.scss
>>     background: linear-gradient(#000000af, #0000009f);
   --------------------------------^

Is there a line I can include in the meantime to just write the lines as is?
I've tried

// scss-lint:disable all

But it still fails on compilation.

@ritwickdey
Copy link
Owner

ritwickdey commented Jul 11, 2018

This is a library issue. I'm upgrading the library. Will fix after next update

Duplicate of #39

@ritwickdey ritwickdey self-assigned this Jul 11, 2018
ritwickdey added a commit that referenced this issue Jul 11, 2018
ritwickdey added a commit that referenced this issue Jul 11, 2018
@ritwickdey
Copy link
Owner

ritwickdey commented Jul 11, 2018

This issue has been fixed from v3.0.0. Please let know if it's still not working.
Thanks for the report.

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

No branches or pull requests

2 participants