-
Notifications
You must be signed in to change notification settings - Fork 71
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
Address color level 4 deprecation warnings #5236
base: develop
Are you sure you want to change the base?
Conversation
1348a87
to
4304c07
Compare
6aefd6d
to
5c40178
Compare
$kendo-series-a-light: if($kendo-enable-color-system, k-color( series-a-subtle ), mix(white, $kendo-series-a, 25%)) !default; | ||
$kendo-series-a-lighter: if($kendo-enable-color-system, k-color( series-a-subtler ), mix(white, $kendo-series-a, 50%)) !default; | ||
$kendo-series-a-dark: if($kendo-enable-color-system, k-color( series-a-bold ), color.mix(black, $kendo-series-a, 25%)) !default; | ||
$kendo-series-a-darker: if($kendo-enable-color-system, k-color( series-a-bolder ), color.mix(black, $kendo-series-a, 50%)) !default; |
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.
There are some occurrences (not in this particular file) of the custom k-color-mix()
being used.
This mean that as of now we use both color.mix()
and k-color-mix()
in our codebase, which are practically the same.
kendo-themes/packages/core/scss/functions/_color.import.scss
Lines 87 to 90 in 7e81c25
/// @debug k-color-mix( #f00, #00f ); // => #800080 | |
@function k-color-mix( $color1, $color2, $weight: 50% ) { | |
@return mix( $color1, $color2, $weight ); | |
} |
I suggest sticking to one of them for code consistency.
My suggestion -
color.mix()
.
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.
@telerik/kendo-front-end
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.
I agree that using a single color function is a better approach. Also, my preference is for color.mix()
d7fbb2d
to
b53efc7
Compare
related to changes in Sass color functions here