Skip to content

Commit 24f0471

Browse files
crisbetoandrewseguin
authored andcommitted
chore(spinner): avoid deprecation warning in Safari (#7810)
Fixes a deprecation warning that was being logged by the spinner on Safari.
1 parent 25bc760 commit 24f0471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/progress-spinner/progress-spinner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class MatProgressSpinner extends _MatProgressSpinnerMixinBase implements
203203
}
204204

205205
if (styleTag && styleTag.sheet) {
206-
(styleTag.sheet as CSSStyleSheet).insertRule(this._getAnimationText());
206+
(styleTag.sheet as CSSStyleSheet).insertRule(this._getAnimationText(), 0);
207207
}
208208

209209
MatProgressSpinner.diameters.add(this.diameter);

0 commit comments

Comments
 (0)