-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Gradient has outdated direction syntax. New syntax is like "to left" instead of "right". #530
Gradient has outdated direction syntax. New syntax is like "to left" instead of "right". #530
Comments
@KrunchMuffin Yeah, a little mistake, but hope you understood. Instead of |
Ok, thx. Thought it was |
Need to fix warning |
@TrySound what we need to fix in warning? |
I checked warnings. Everything is fine. |
For me there was neither a background-image: linear-gradient(to right, #aaa 80%, #555); |
@bl4ckdu5t maybe you have some legacy code or CSS from libraries? |
That was the case exactly. Thanks |
actually I had the same warning for: |
This error is really getting to me, postcss vendor prefix is outputting: background-image: -webkit-linear-gradient(top, #78932b, #8cb434);
background-image: -moz-linear-gradient(top, #78932b, #8cb434);
background-image: -o-linear-gradient(top, #78932b, #8cb434);
background-image: linear-gradient(to bottom, #78932b, #8cb434); Is that not correct? Doesn't it make sense old vendor prefixes have the old syntax? |
@dominictobias show full text of your warning |
@ai Not much to go by but here it is! (using latest create-react-app react-scripts):
That isn't a public NPM module sorry! |
Maybe it is different line? Your code is correct. |
@ai whoops, thanks for confirming, I've found the culprit now (y) |
Outdated syntax causes warnings with postcss. - postcss/autoprefixer#530 - https://developer.mozilla.org/en/docs/Web/CSS/linear-gradient PS. I know this addresses an issue from a 3rd party component. However, bootstrap-datapicker seems unmaintained. Or if you're using a fork, kindly let me know and I'll be happy to PR to that repo instead
just want to point out, its 2019 and this issue is still helpful. not sure if this is a good or bad thing. |
i have this.. the same error disapear! |
Just to be clear, we should change
|
@abdullaachilov yeap |
Just to be clear, we should change top - > to bottom 2022 and this post still helpful |
And green means stop and red means go. Glad I could be of assistance all these years later. 😁 |
The line is actually
background-image: linear-gradient(top, #fdd49a, #fdf59a);
not sure where
right
is coming from? Not even using right at all in the file.v3.0.2 Gulp
The text was updated successfully, but these errors were encountered: