[AAE-10283] Fix deployment of content-ee and content-ee-apa with dynamic themes (#2606)

This commit is contained in:
Bartosz Sekuła 2022-08-25 10:22:56 +02:00 committed by GitHub
parent 9cd616ff8c
commit c60a3b51cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
@function get-custom-backgrond-color($background-color, $theme) {
@function get-custom-background-color($background-color, $theme) {
$background: map-get($theme, background);
$card: map-get($background, card);

View File

@ -1,4 +1,4 @@
@import '~sass-math-pow/sass/index';
@use "sass:math";
@function multiply($fore, $back) {
$red: red($back) * red($fore) / 255;
@ -23,7 +23,7 @@
$value: $value / 12.92;
} @else {
$value: ($value + .055) / 1.055;
$value: poly-pow($value, 2.4);
$value: math.pow($value, 2.4);
}
$colors: map-merge($colors, ($name: $value));

View File

@ -1,4 +1,4 @@
@import '~@angular/material/theming';
@import '@angular/material/theming';
@import './overrides/adf-style-fixes.theme';
@import "./dynamic-theme/theme-configuration";
@import "./dynamic-theme/typography";
@ -29,7 +29,7 @@ $custom-theme: mat-light-theme(
);
@if $background-color {
$custom-background: get-custom-backgrond-color($background-color, $custom-theme);
$custom-background: get-custom-background-color($background-color, $custom-theme);
$custom-theme: map_merge($custom-theme, (background: $custom-background));
}