Skip to content

Commit 09e61f9

Browse files
committed
style(material/progress-bar): wrap with hidden div
1 parent 05ab086 commit 09e61f9

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/material/progress-bar/progress-bar.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
The background div is named as such because it appears below the other divs and is not sized based
33
on values.
44
-->
5-
<svg width="100%" height="4" focusable="false" class="mat-progress-bar-background mat-progress-bar-element" aria-hidden="true">
6-
<defs>
7-
<pattern [id]="progressbarId" x="4" y="0" width="8" height="4" patternUnits="userSpaceOnUse">
8-
<circle cx="2" cy="2" r="2"/>
9-
</pattern>
10-
</defs>
11-
<rect [attr.fill]="_rectangleFillValue" width="100%" height="100%"/>
12-
</svg>
13-
<div class="mat-progress-bar-buffer mat-progress-bar-element" [ngStyle]="_bufferTransform()" aria-hidden="true"></div>
14-
<div class="mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element" [ngStyle]="_primaryTransform()" #primaryValueBar aria-hidden="true"></div>
15-
<div class="mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element" aria-hidden="true"></div>
5+
<div aria-hidden="true">
6+
<svg width="100%" height="4" focusable="false" class="mat-progress-bar-background mat-progress-bar-element">
7+
<defs>
8+
<pattern [id]="progressbarId" x="4" y="0" width="8" height="4" patternUnits="userSpaceOnUse">
9+
<circle cx="2" cy="2" r="2"/>
10+
</pattern>
11+
</defs>
12+
<rect [attr.fill]="_rectangleFillValue" width="100%" height="100%"/>
13+
</svg>
14+
<div class="mat-progress-bar-buffer mat-progress-bar-element" [ngStyle]="_bufferTransform()"></div>
15+
<div class="mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element" [ngStyle]="_primaryTransform()" #primaryValueBar></div>
16+
<div class="mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element"></div>
17+
</div>

0 commit comments

Comments
 (0)