Skip to content

Commit 5fceefe

Browse files
fix: angular material imports
1 parent 84b7cff commit 5fceefe

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"optimization": true,
6565
"outputHashing": "all",
6666
"sourceMap": false,
67-
"extractCss": true,
6867
"namedChunks": false,
6968
"extractLicenses": true,
7069
"vendorChunk": false,

projects/assets-library/assets/styles/_font.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use '~@angular/material' as mat;
12
@import 'color-palette';
23

34
$font-family: 'Work Sans', sans-serif;
@@ -329,3 +330,7 @@ $font-family: 'Work Sans', sans-serif;
329330
@mixin axis-title($color: $gray-9) {
330331
@include chart-small-regular;
331332
}
333+
334+
$mat-typography: mat.define-typography-config(
335+
$font-family: $font-family
336+
);

src/styles/main.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
@use '~@angular/material' as mat;
12
@import 'shared-globals';
2-
@import '@angular/material/theming';
33

44
.vertical-flex-layout {
55
@include flex-layout(column);
@@ -79,4 +79,4 @@ mark {
7979
// Include the common styles for Angular Material. We include this here so that you only
8080
// have to load a single css file for Angular Material in your app.
8181
// Be sure that you only ever include this mixin once!
82-
@include mat-core(mat-typography-config($font-family: $font-family));
82+
@include mat.core($mat-typography);

0 commit comments

Comments
 (0)