Skip to content

Commit

Permalink
[AAE-12876] Custom UI cannot be fetched and returns error 404 (#3020)
Browse files Browse the repository at this point in the history
  • Loading branch information
BSekula committed Feb 28, 2023
1 parent a3d5b74 commit d0817a2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ $text-color: map-get($theme-config, 'textColor');
$base-font-size: map-get($theme-config, 'baseFontSize');
$font-family: map-get($theme-config, 'fontFamily');

$alfresco-typography: get-mat-typography(
$app-typography: get-mat-typography(
$base-font-size,
$font-family,
$alfresco-typography
$font-family
);

@include mat-core();
Expand All @@ -31,7 +30,7 @@ $custom-theme: mat-light-theme(
accent: map-get($palettes, accent),
warn: map-get($palettes, warning)
),
typography: $alfresco-typography
typography: $app-typography
)
);

Expand Down
21 changes: 18 additions & 3 deletions projects/aca-content/src/lib/ui/dynamic-theme/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,25 @@

@function get-mat-typography(
$base-font-size,
$font-family,
$default-typography
$font-family
) {
$custom-typography: $default-typography;
$custom-typography: mat.define-typography-config(
$font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif',
$display-4: mat.define-typography-level(112px, 112px, 300),
$display-3: mat.define-typography-level(56px, 56px, 400),
$display-2: mat.define-typography-level(45px, 48px, 400),
$display-1: mat.define-typography-level(34px, 40px, 400),
$headline: mat.define-typography-level(24px, 32px, 400),
$title: mat.define-typography-level(20px, 32px, 500),
$subheading-2: mat.define-typography-level(16px, 28px, 400),
$subheading-1: mat.define-typography-level(15px, 24px, 400),
$body-2: mat.define-typography-level(14px, 24px, 500),
$body-1: mat.define-typography-level(14px, 20px, 400),
$caption: mat.define-typography-level(12px, 20px, 400),
$button: mat.define-typography-level(14px, 14px, 500),
// Line-height must be unit-less fraction of the font-size.
$input: mat.define-typography-level(16px, 1.25, 400)
);

@if $base-font-size {
$custom-typography: mat.define-typography-config(
Expand Down

0 comments on commit d0817a2

Please sign in to comment.