Skip to content

Commit 6277ee2

Browse files
crisbetowagnermaciel
authored andcommitted
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. (cherry picked from commit 03cc48d)
1 parent 73d0687 commit 6277ee2

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
@@ -37,6 +37,9 @@ $_mat-progress-spinner-default-circumference: $pi * $_mat-progress-spinner-defau
3737
// SVG colors aren't inverted automatically in high contrast mode. Set the
3838
// stroke to currentColor in order to respect the user's color settings.
3939
stroke: currentColor;
40+
// currentColor blends in with the background in Chromium-based browsers
41+
// so we have to fall back to `CanvasText` which isn't supported on IE.
42+
stroke: CanvasText;
4043
}
4144
}
4245

0 commit comments

Comments
 (0)