File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
projects/material-css-vars/src/lib Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export class MaterialCssVarsService {
42
42
primary = "#03a9f4" ;
43
43
accent = "#e91e63" ;
44
44
warn = "#f44336" ;
45
- isDarkTheme = false ; // ToDo: make this attribute optional in next major version
45
+ isDarkTheme ?: boolean ;
46
46
contrastColorThresholdPrimary : HueValue = "400" ;
47
47
contrastColorThresholdAccent : HueValue = "400" ;
48
48
contrastColorThresholdWarn : HueValue = "400" ;
@@ -165,9 +165,7 @@ export class MaterialCssVarsService {
165
165
threshold : HueValue ,
166
166
palettePrefix : MatCssPalettePrefix ,
167
167
) {
168
- // ToDo: address this lint error
169
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
170
- if ( ! threshold || ! palettePrefix || this . isAutoContrast ) {
168
+ if ( this . isAutoContrast ) {
171
169
return ;
172
170
}
173
171
let color = MaterialCssVarsService . DARK_TEXT_VAR ;
You can’t perform that action at this time.
0 commit comments