-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/snack-bar): handle long single-line content (#24135)
Fixes that long strings without spaces were breaking the layout of the snack bar. Fixes #21681. (cherry picked from commit 0bc45ca)
- Loading branch information
1 parent
4972dc5
commit 99e7782
Showing
2 changed files
with
6 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<span>{{data.message}}</span> | ||
<span class="mat-simple-snack-bar-content">{{data.message}}</span> | ||
<div class="mat-simple-snackbar-action" *ngIf="hasAction"> | ||
<button mat-button (click)="action()">{{data.action}}</button> | ||
</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