Skip to content
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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

epetrow
Copy link
Contributor

@epetrow epetrow commented Nov 19, 2024

related to changes in Sass color functions here

@epetrow epetrow self-assigned this Nov 19, 2024
@epetrow epetrow force-pushed the color-func-deprecations branch 2 times, most recently from 6aefd6d to 5c40178 Compare November 19, 2024 15:03
@epetrow epetrow marked this pull request as ready for review November 19, 2024 15:09
@epetrow epetrow requested a review from a team as a code owner November 19, 2024 15:09
$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;
Copy link
Contributor

@zhpenkov zhpenkov Nov 20, 2024

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.

/// @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().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@telerik/kendo-front-end

Copy link
Contributor

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()

@inikolova inikolova self-requested a review November 22, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants