Skip to content
Snippets Groups Projects
Commit ad231938 authored by Delphine's avatar Delphine Committed by pybelecalo
Browse files

[TECH] Fix theme colors error

parent b0ebd5d4
No related branches found
No related tags found
No related merge requests found
......@@ -215,11 +215,8 @@ export class ThemeService {
if (([ThemeColorType.VITAMUI_PRIMARY, ThemeColorType.VITAMUI_SECONDARY, ThemeColorType.VITAMUI_GREY] as string[]).includes(key)) {
this.add10Declinations(key, colors, customerColors);
} else if (key === ThemeColorType.VITAMUI_HEADER_FOOTER) {
if (customerColors[key]) {
colors[key + '-font'] = this.calculateFontColor(customerColors[key]);
} else {
colors[key + '-font'] = this.calculateFontColor(this.applicationColorMap[key]);
}
const map = {...this.defaultMap, ...this.applicationColorMap, ...customerColors};
colors[key + '-font'] = this.calculateFontColor(map[key]);
}
colors[key] = getColorFromMaps(key, this.defaultMap, this.applicationColorMap, customerColors);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment