|
1 | 1 | @use '@angular/cdk';
|
2 | 2 | @use './m3-progress-bar';
|
3 | 3 | @use '../core/tokens/token-utils';
|
4 |
| -@use '../core/style/vendor-prefixes'; |
5 | 4 |
|
6 | 5 | $fallbacks: m3-progress-bar.get-tokens();
|
7 | 6 |
|
@@ -104,18 +103,18 @@ $fallbacks: m3-progress-bar.get-tokens();
|
104 | 103 | }
|
105 | 104 |
|
106 | 105 | .mdc-linear-progress__buffer-dots {
|
107 |
| - $mask: "data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' " + |
108 |
| - "xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' " + |
109 |
| - "enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' " + |
110 |
| - "preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E"; |
111 |
| - |
112 |
| - @include vendor-prefixes.mask-image(url($mask)); |
| 106 | + $circle-color: token-utils.slot(progress-bar-track-color, $fallbacks); |
| 107 | + $circle-size: calc(#{token-utils.slot(progress-bar-track-height, $fallbacks)} / 2); |
| 108 | + background-image: radial-gradient(circle, #{$circle-color} #{$circle-size}, transparent 0); |
113 | 109 | background-repeat: repeat-x;
|
| 110 | + background-size: calc(#{$circle-size} * 5); |
| 111 | + // The `background-position` prevents the animation from jumping around when the progress |
| 112 | + // changes. Note that we shouldn't invert it in RTL, because the animation direction is reversed. |
| 113 | + background-position: left; |
114 | 114 | flex: auto;
|
115 | 115 | transform: rotate(180deg);
|
116 | 116 | animation: mdc-linear-progress-buffering
|
117 | 117 | calc(250ms * var(--mat-progress-bar-animation-multiplier)) infinite linear;
|
118 |
| - background-color: token-utils.slot(progress-bar-track-color, $fallbacks); |
119 | 118 |
|
120 | 119 | @include cdk.high-contrast {
|
121 | 120 | background-color: ButtonBorder;
|
|
0 commit comments