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 {
5757 constructor ( ) {
5858 this . renderer = inject ( RendererFactory2 ) . createRenderer ( null , null ) ;
5959 const cfg = inject ( MATERIAL_CSS_VARS_CFG ) ;
60- this . ROOT = this . _getRootElement ( cfg . rootSelector ) ;
6160
6261 this . cfg = {
6362 ...DEFAULT_MAT_CSS_CFG ,
6463 ...cfg ,
6564 } ;
6665 this . isAutoContrast = this . cfg . isAutoContrast ;
66+ this . ROOT = this . _getRootElement ( this . cfg . rootSelector ) ;
6767
6868 if ( typeof this . cfg . isDarkTheme === "boolean" ) {
6969 this . setDarkTheme ( this . cfg . isDarkTheme ) ;
Original file line number Diff line number Diff line change 11import { InjectionToken } from "@angular/core" ;
22import { MaterialCssVariablesConfig } from "./lib/model" ;
33
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