Skip to content
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
15 changes: 7 additions & 8 deletions src/material/progress-bar/progress-bar.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use '@angular/cdk';
@use './m3-progress-bar';
@use '../core/tokens/token-utils';
@use '../core/style/vendor-prefixes';

$fallbacks: m3-progress-bar.get-tokens();

Expand Down Expand Up @@ -104,18 +103,18 @@ $fallbacks: m3-progress-bar.get-tokens();
}

.mdc-linear-progress__buffer-dots {
$mask: "data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' " +
"xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' " +
"enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' " +
"preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E";

@include vendor-prefixes.mask-image(url($mask));
$circle-color: token-utils.slot(progress-bar-track-color, $fallbacks);
$circle-size: calc(#{token-utils.slot(progress-bar-track-height, $fallbacks)} / 2);
background-image: radial-gradient(circle, #{$circle-color} #{$circle-size}, transparent 0);
background-repeat: repeat-x;
background-size: calc(#{$circle-size} * 5);
// The `background-position` prevents the animation from jumping around when the progress
// changes. Note that we shouldn't invert it in RTL, because the animation direction is reversed.
background-position: left;
flex: auto;
transform: rotate(180deg);
animation: mdc-linear-progress-buffering
calc(250ms * var(--mat-progress-bar-animation-multiplier)) infinite linear;
background-color: token-utils.slot(progress-bar-track-color, $fallbacks);

@include cdk.high-contrast {
background-color: ButtonBorder;
Expand Down
Loading