Skip to content

Commit c60a3b5

Browse files
authored
[AAE-10283] Fix deployment of content-ee and content-ee-apa with dynamic themes (#2606)
1 parent 9cd616f commit c60a3b5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/src/app/ui/dynamic-theme/custom-background-color.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@function get-custom-backgrond-color($background-color, $theme) {
1+
@function get-custom-background-color($background-color, $theme) {
22
$background: map-get($theme, background);
33

44
$card: map-get($background, card);

app/src/app/ui/dynamic-theme/custom-palette-creator.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '~sass-math-pow/sass/index';
1+
@use "sass:math";
22

33
@function multiply($fore, $back) {
44
$red: red($back) * red($fore) / 255;
@@ -23,7 +23,7 @@
2323
$value: $value / 12.92;
2424
} @else {
2525
$value: ($value + .055) / 1.055;
26-
$value: poly-pow($value, 2.4);
26+
$value: math.pow($value, 2.4);
2727
}
2828

2929
$colors: map-merge($colors, ($name: $value));

app/src/app/ui/dynamic-theme/custom-theme.scss.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '~@angular/material/theming';
1+
@import '@angular/material/theming';
22
@import './overrides/adf-style-fixes.theme';
33
@import "./dynamic-theme/theme-configuration";
44
@import "./dynamic-theme/typography";
@@ -29,7 +29,7 @@ $custom-theme: mat-light-theme(
2929
);
3030

3131
@if $background-color {
32-
$custom-background: get-custom-backgrond-color($background-color, $custom-theme);
32+
$custom-background: get-custom-background-color($background-color, $custom-theme);
3333
$custom-theme: map_merge($custom-theme, (background: $custom-background));
3434
}
3535

0 commit comments

Comments
 (0)