Skip to content

Commit

Permalink
fix(): merge themes correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Enlcxx committed Dec 14, 2019
1 parent 54dbc97 commit e950c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class GlobalVariables implements RecursivePartial<MinimaLight & MinimaDar
default: '#ffc107',
contrast: 'rgba(0, 0, 0, 0.87)'
};
transparent = 'rgba(0, 0, 0, 0)';
transparent = new Color(0, 0, 0, 0);
typography: LyTypographyTheme = {
lyTyp: {
subTitle: () => lyl `{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export function mergeThemes(target: any, ...sources: any[]): any {
if (targetKey instanceof StyleCollection && typeof sourceKey === 'function') {
target[key] = (target[key] as StyleCollection).add(sourceKey);
} else {
target[key] = source[key];
Object.assign(target, { [key]: source[key] });
}
}
}
Expand Down

0 comments on commit e950c68

Please sign in to comment.