-
Notifications
You must be signed in to change notification settings - Fork 246
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
Replace deprecated darken with color.adjust for Sass compliance #634
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- don't write so much in the pull request alone, what you said should be in the commit message,
- rewrite your commit message and force push, see our guidance for a checklist,
- add the problem to the commit message, as the GitHub issue will be lost and the commit message kept,
- add the solution to the commit message, as the GitHub pull request will be lost and the commit message kept,
- do not make changes unrelated to your stated intent, be more careful, use interactive add of git if necessary to avoid any changes made by your software tools,
Please fix these things in your existing branch, squash your commits, and then force push to update the pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated files should not be committed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated files should not be committed.
While testing another pull request, I hit the deprecation warning so had a quick look at this. Made changes as requested and pushed to pr634-test branch as 422361a ("Fix darken() is deprecated on local serve"), then tested. The test failed as follows;
What do you suggest? |
and while resolving things which you said i am facing an issue, that my code was replacing depreciated to color.adjust same as like yours (without delimeters) , after that errors are gone but when loading the page When darken is replaced with color.adjust i noticed that on localhost on /css/ion_icon_customization.css shows not found, but with darken func it shows the code, somehow making file not reachable when switching to color.adjust The problem is darken was depreciated and color.adjust is new, so color.adjust requires the code to be compiled into some file, |
Thanks, that's interesting. Using the master branch at 75b2a0d ("Fix section name wording") and removing the two You're not seeing errors because you've turned off that part of the build. Your branch has one unconverted Your branch does not use the correct syntax; the second argument to I've made further edits in an attempt to get closer to merge, and pushed 8cb4bf3 to pr624-test branch. Please review this commit in detail; it is derived from your work, and has your name on it. Please do be careful; a change very much like this broke the site build in November, which you should have seen in the closed pull requests and the commit history. You don't mentioned either of these in your commit messages or pull request, so I'm not sure if you are aware of the problem. Please;
(rhetorical; if you've not seen those two sources of information, what are you doing changing this?) Integrate this information and determine if it is safe to proceed. @mohanamisra mentioned because of previous commits. @pikurasa mentioned because of revert. |
@@ -299,4 +287,4 @@ $medium-background-hover: darken($medium-background, $darken-percent); | |||
} | |||
} | |||
} | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no new line at the EOF.
@@ -106,7 +95,7 @@ $medium-background-hover: darken($medium-background, $darken-percent); | |||
background: $github-background; | |||
} | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all these changes are also not needed
&:hover { | ||
color: $instagram-color-hover; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for here.
@@ -231,12 +219,12 @@ $medium-background-hover: darken($medium-background, $darken-percent); | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for here.
&:hover { | ||
color: $X-color-hover; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for here.
@@ -116,7 +105,7 @@ $medium-background-hover: darken($medium-background, $darken-percent); | |||
background: $X-background-hover; | |||
} | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for here.
@@ -127,7 +116,7 @@ $medium-background-hover: darken($medium-background, $darken-percent); | |||
background: $instagram-background-hover; | |||
} | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for here.
@@ -199,12 +188,12 @@ $medium-background-hover: darken($medium-background, $darken-percent); | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for here.
&:hover { | ||
color: $github-color-hover; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for here.
@@ -215,14 +204,13 @@ $medium-background-hover: darken($medium-background, $darken-percent); | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for here.
Tested and works as intended. |
Summary
darken
being used, causing warning #633 the warning of depreciated darken function in the terminal andChanges/explanation
sass /css/ion_icon_customization.scss /css/ion_icon_customization.css
to generate the compiled css file, which was necessary for "@use keyword" in @use "sass:color" which was used to use color thing to replaced darken the main thing.Testing