Skip to content

fix(progress-spinner): not respecting user colors in high contrast mode #19786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/material/progress-spinner/progress-spinner.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '../core/style/variables';
@import '../core/style/noop-animation';
@import '../../cdk/a11y/a11y';


// Animation config
Expand Down Expand Up @@ -27,6 +28,12 @@ $_mat-progress-spinner-default-circumference: $pi * $_mat-progress-spinner-defau
fill: transparent;
transform-origin: center;
transition: stroke-dashoffset 225ms linear;

@include cdk-high-contrast(active, off) {
// SVG colors aren't inverted automatically in high contrast mode. Set the
// stroke to currentColor in order to respect the user's color settings.
stroke: currentColor;
}
}

&.mat-progress-spinner-indeterminate-animation[mode='indeterminate'] {
Expand Down