File tree Expand file tree Collapse file tree 2 files changed +0
-28
lines changed
projects/material-css-vars/src/lib Expand file tree Collapse file tree 2 files changed +0
-28
lines changed Original file line number Diff line number Diff line change 116
116
117
117
// mixins
118
118
// ------
119
- @mixin mat-css-color-and-contrast ($hue ) {
120
- @warn " mat-css-color-and-contrast() is deprecated. Please use mat-css-color-and-contrast-primary() instead." ;
121
- @include mat-css-color-and-contrast-primary ($hue );
122
- }
123
-
124
119
@mixin mat-css-color-and-contrast-primary ($hue ) {
125
120
background : mat-css-color-primary ($hue );
126
121
color : mat-css-contrast-color ($hue );
Original file line number Diff line number Diff line change @@ -191,29 +191,6 @@ export class MaterialCssVarsService {
191
191
this . setWarnColor ( this . warn ) ;
192
192
}
193
193
194
- /** @deprecated use setContrastColorThresholdPrimary instead */
195
- changeContrastColorThresholdPrimary ( threshold : HueValue ) {
196
- this . setContrastColorThresholdPrimary ( threshold ) ;
197
- }
198
-
199
- /** @deprecated use setContrastColorThresholdAccent instead */
200
- changeContrastColorThresholdAccent ( threshold : HueValue ) {
201
- this . setContrastColorThresholdAccent ( threshold ) ;
202
- }
203
-
204
- /** @deprecated use setContrastColorThresholdWarn instead */
205
- changeContrastColorThresholdWarn ( threshold : HueValue ) {
206
- this . setContrastColorThresholdWarn ( threshold ) ;
207
- }
208
-
209
- /** @deprecated use setContrastColorThreshold instead */
210
- changeContrastColorThreshold (
211
- threshold : HueValue ,
212
- palettePrefix : MatCssPalettePrefix ,
213
- ) {
214
- this . setContrastColorThreshold ( threshold , palettePrefix ) ;
215
- }
216
-
217
194
getPaletteForColor ( hex : string ) : MatCssHueColorMapItem [ ] {
218
195
if ( this . cfg . isAlternativeColorAlgorithm ) {
219
196
return this . getTraditionalPaletteForColor ( hex ) ;
You can’t perform that action at this time.
0 commit comments