Skip to content

Commit

Permalink
[AAE-13780] Fix custom theme components colors (#3128)
Browse files Browse the repository at this point in the history
  • Loading branch information
BSekula committed Apr 18, 2023
1 parent e9496eb commit f3f2b18
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,19 @@ $custom-theme: mat-light-theme(
@if $background-color {
$custom-background: get-custom-background-color($background-color, $custom-theme);
$custom-theme: map_merge($custom-theme, (background: $custom-background));
$color: map_get($custom-theme, color);
$new-color: map_merge($color, (background: $custom-background));
$custom-theme: map_merge($custom-theme, (color: $new-color));
}

@if $text-color {
$custom-foreground: get-custom-text-color($text-color, $custom-theme);
$custom-theme: map_merge($custom-theme, (foreground: $custom-foreground));
$color: map_get($custom-theme, color);
$new-color: map_merge($color, (foreground: $custom-foreground));
$custom-theme: map_merge($custom-theme, (color: $new-color));
}

@mixin custom-theme($theme) {
Expand Down

0 comments on commit f3f2b18

Please sign in to comment.