Skip to content

Commit 39033cb

Browse files
committed
fix(theme-token): match implementation in master
1 parent cfbc684 commit 39033cb

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

projects/igniteui-angular/src/lib/services/theme/theme.token.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@ import { BehaviorSubject } from "rxjs";
44
export class ThemeToken {
55
private document = inject(DOCUMENT);
66
public subject: BehaviorSubject<IgxTheme>;
7-
public variant: IgxThemeVariant;
87

98
constructor(private t?: IgxTheme) {
109
const globalTheme = globalThis.window
1110
?.getComputedStyle(this.document.body)
1211
.getPropertyValue("--ig-theme")
1312
.trim() || 'material' as IgxTheme;
1413

15-
this.variant = globalThis.window
16-
?.getComputedStyle(this.document.body)
17-
.getPropertyValue("--ig-theme-variant")
18-
.trim() as IgxThemeVariant;
19-
2014
const _theme = t ?? globalTheme as IgxTheme;
2115
this.subject = new BehaviorSubject(_theme);
2216
}
@@ -50,14 +44,7 @@ const Theme = {
5044
IndigoDesign: "indigo",
5145
} as const;
5246

53-
const ThemeVariant = /*@__PURE__*/ mkenum({
54-
Light: "light",
55-
Dark: "dark"
56-
});
57-
5847
/**
5948
* Determines the component theme.
6049
*/
6150
export type IgxTheme = (typeof Theme)[keyof typeof Theme];
62-
63-
export type IgxThemeVariant = (typeof ThemeVariant)[keyof typeof ThemeVariant];

0 commit comments

Comments
 (0)