File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
projects/material-css-vars/src Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,13 @@ export class MaterialCssVarsService {
57
57
constructor ( ) {
58
58
this . renderer = inject ( RendererFactory2 ) . createRenderer ( null , null ) ;
59
59
const cfg = inject ( MATERIAL_CSS_VARS_CFG ) ;
60
- this . ROOT = this . _getRootElement ( cfg . rootSelector ) ;
61
60
62
61
this . cfg = {
63
62
...DEFAULT_MAT_CSS_CFG ,
64
63
...cfg ,
65
64
} ;
66
65
this . isAutoContrast = this . cfg . isAutoContrast ;
66
+ this . ROOT = this . _getRootElement ( this . cfg . rootSelector ) ;
67
67
68
68
if ( typeof this . cfg . isDarkTheme === "boolean" ) {
69
69
this . setDarkTheme ( this . cfg . isDarkTheme ) ;
Original file line number Diff line number Diff line change 1
1
import { InjectionToken } from "@angular/core" ;
2
2
import { MaterialCssVariablesConfig } from "./lib/model" ;
3
3
4
- export const MATERIAL_CSS_VARS_CFG =
5
- new InjectionToken < MaterialCssVariablesConfig > ( "Mat Css Config" ) ;
4
+ export const MATERIAL_CSS_VARS_CFG = new InjectionToken <
5
+ MaterialCssVariablesConfig | undefined
6
+ > ( "Mat Css Config" ) ;
You can’t perform that action at this time.
0 commit comments