-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(progress-bar): remove data url for CSP compliance (#8898)
- Loading branch information
1 parent
24f62eb
commit 0f2ac9b
Showing
4 changed files
with
23 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
<!-- The background div is named as such because it appears below the other divs and is not sized based on values. --> | ||
<div class="mat-progress-bar-background mat-progress-bar-element"></div> | ||
<!-- | ||
The background div is named as such because it appears below the other divs and is not sized based | ||
on values. | ||
--> | ||
<svg width="100%" height="5" class="mat-progress-bar-background mat-progress-bar-element"> | ||
<defs> | ||
<pattern [id]="progressbarId" x="5" y="0" width="10" height="5" patternUnits="userSpaceOnUse"> | ||
<circle cx="2.5" cy="2.5" r="2.5"/> | ||
</pattern> | ||
</defs> | ||
<rect [attr.fill]="'url(#' + progressbarId + ')'" width="100%" height="100%"/> | ||
</svg> | ||
<div class="mat-progress-bar-buffer mat-progress-bar-element" [ngStyle]="_bufferTransform()"></div> | ||
<div class="mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element" [ngStyle]="_primaryTransform()"></div> | ||
<div class="mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters