Skip to content

Commit 2c07ce1

Browse files
Fixed setContrastColorThreshold (#1)
1 parent 55c0e52 commit 2c07ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/material-css-vars/src/lib/material-css-vars.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class MaterialCssVarsService {
156156
}
157157
return {
158158
val: this._getCssVarValue(color),
159-
name: `${palettePrefix + MaterialCssVarsService.CONTRAST_PREFIX}${hue}`,
159+
name: `${palettePrefix + MaterialCssVarsService.CONTRAST_PREFIX}${hue}-rgb`,
160160
};
161161
});
162162
this._setStyle(updates);

0 commit comments

Comments
 (0)