AAE-31712 Custom theme fix after ng17 update (#10661)

* AAE-31712 Fix custom theme after Angular17 update

* update
This commit is contained in:
Bartosz Sekula
2025-02-18 13:58:29 +01:00
committed by GitHub
parent ca4dcf85f4
commit 3c7e8e84ff
3 changed files with 9 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
@use 'sass:map';
@use 'sass:math';
@use 'sass:color';
@use '@angular/material' as mat;
@function multiply($fore, $back) {
$red: math.div(color.red($back) * color.red($fore), 255);
@@ -44,8 +45,11 @@
$green: color.green($color);
$blue: color.blue($color);
$light-text: $light-primary-text;
$dark-text: $dark-primary-text;
$light-text: map.get(mat.$light-theme-foreground-palette, text);
$light-secondary-text: map.get(mat.$light-theme-foreground-palette, secondary-text);
$dark-text: map.get(mat.$dark-theme-foreground-palette, text);
$dark-secondary-text: map.get(mat.$dark-theme-foreground-palette, secondary-text);
@if $colorType == 'accent' {
$light-text: $light-secondary-text;