Skip to content

Commit 03cc48d

Browse files
authored
fix(material/progress-spinner): not visible in high contrast mode on chromium browsers (#22364)
Fixes that progress spinner blends in with the background, because `currentColor` doesn't work as expected on SVGs on Chromium browsers in high contrast mode.
1 parent 4a06d4f commit 03cc48d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/material/progress-spinner/progress-spinner.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ $_mat-progress-spinner-default-circumference:
3838
// SVG colors aren't inverted automatically in high contrast mode. Set the
3939
// stroke to currentColor in order to respect the user's color settings.
4040
stroke: currentColor;
41+
// currentColor blends in with the background in Chromium-based browsers
42+
// so we have to fall back to `CanvasText` which isn't supported on IE.
43+
stroke: CanvasText;
4144
}
4245
}
4346

0 commit comments

Comments
 (0)