Skip to content

Commit

Permalink
fix(icon): keep font-face styles at root so nesthet themes will work
Browse files Browse the repository at this point in the history
  • Loading branch information
joneff committed Jul 2, 2021
1 parent 4d8bcaa commit 2ce449a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/default/scss/icons/_layout.scss
Expand Up @@ -3,11 +3,14 @@
@include exports( "icons/layout" ) {
$icon-font-url: map-get( $data-uris, "WebComponentsIcons.ttf" ) !default;

@font-face {
font-family: "WebComponentsIcons";
font-style: normal;
font-weight: normal;
src: url(#{$icon-font-url}) format( "truetype" );
// Keep this as a root selector, because nested themes will not work
@at-root {
@font-face {
font-family: "WebComponentsIcons";
font-style: normal;
font-weight: normal;
src: url(#{$icon-font-url}) format( "truetype" );
}
}

.k-icon {
Expand Down

0 comments on commit 2ce449a

Please sign in to comment.