[AAE-12876] Custom UI cannot be fetched and returns error 404 (#3020)

This commit is contained in:
Bartosz Sekula
2023-02-28 13:30:45 +01:00
committed by GitHub
parent a3d5b740b4
commit d0817a2504
2 changed files with 21 additions and 7 deletions

View File

@@ -15,10 +15,9 @@ $text-color: map-get($theme-config, 'textColor');
$base-font-size: map-get($theme-config, 'baseFontSize'); $base-font-size: map-get($theme-config, 'baseFontSize');
$font-family: map-get($theme-config, 'fontFamily'); $font-family: map-get($theme-config, 'fontFamily');
$alfresco-typography: get-mat-typography( $app-typography: get-mat-typography(
$base-font-size, $base-font-size,
$font-family, $font-family
$alfresco-typography
); );
@include mat-core(); @include mat-core();
@@ -31,7 +30,7 @@ $custom-theme: mat-light-theme(
accent: map-get($palettes, accent), accent: map-get($palettes, accent),
warn: map-get($palettes, warning) warn: map-get($palettes, warning)
), ),
typography: $alfresco-typography typography: $app-typography
) )
); );

View File

@@ -3,10 +3,25 @@
@function get-mat-typography( @function get-mat-typography(
$base-font-size, $base-font-size,
$font-family, $font-family
$default-typography
) { ) {
$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 { @if $base-font-size {
$custom-typography: mat.define-typography-config( $custom-typography: mat.define-typography-config(