Skip to content

Commit

Permalink
feat: migrate kendo-icons to dart-sass module system
Browse files Browse the repository at this point in the history
BREAKING CHANGE

Starting with the R4 2024 release the Kendo Font and SVG icons are now
migrated to the SASS module system. This breaking change is due to the
`node-sass` package reaching its official end of life.

For more information, please refer to the following links:

* https://sass-lang.com/blog/the-module-system-is-launched/
* sass/node-sass@107ded9
  • Loading branch information
epetrow committed Nov 5, 2024
1 parent bfc683d commit 80940ff
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 2 additions & 0 deletions packages/font-icons/scss/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "./_font.scss" as *;

$ki-font-family: "WebComponentsIcons" !default;
$ki-icon-size: 16px !default;

Expand Down
3 changes: 2 additions & 1 deletion packages/font-icons/scss/all.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "index.scss";
@forward "index.scss";
@use "index.scss" as *;

@include kendo-font-icon-styles();
8 changes: 5 additions & 3 deletions packages/font-icons/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@import "_font.scss";
@import "_variables.scss";
@import "_icon-list.scss";
@forward "_variables.scss";

@use "_font.scss" as *;
@use "_variables.scss" as *;
@use "_icon-list.scss" as *;

@mixin kendo-font-icon-styles() {

Expand Down
3 changes: 2 additions & 1 deletion packages/svg-icons/scss/all.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "index.scss";
@forward "index.scss";
@use "index.scss" as *;

@include kendo-svg-icon-styles();
5 changes: 3 additions & 2 deletions packages/svg-icons/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "_variables.scss";
@forward "_variables.scss";
@use "_variables.scss" as *;

@mixin kendo-svg-icon-styles() {

Expand Down Expand Up @@ -51,7 +52,7 @@
height: $ki-icon-size-xxxl;
}
}


// Flip
.k-flip-h,
Expand Down

0 comments on commit 80940ff

Please sign in to comment.