Skip to content

Commit 11b97e4

Browse files
committed
fix(snackbar): wrap simple snackbar text in span (#12599)
We have begun transforming our html templates in our internal syncs to include our license header which results in a new line above template. In the simple snack bar this adds a single space when looking at the elements textContent. By wrapping the content in a span we ensure that the whitespace is consistent regardless of the presence of the license header comment in the template file.
1 parent a192907 commit 11b97e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{{data.message}}
2-
1+
<span>{{data.message}}</span>
32
<div class="mat-simple-snackbar-action" *ngIf="hasAction">
43
<button mat-button (click)="action()">{{data.action}}</button>
54
</div>

0 commit comments

Comments
 (0)