Skip to content

Commit b384836

Browse files
committed
fix(expansion-panel): handle long text inside panel header title and description
Handles long text inside the `mat-panel-title` and `mat-panel-description`. Previously the text would continue wrapping and overflowing the header. Fixes #10744.
1 parent edb57f9 commit b384836

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/expansion/expansion-panel-header.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@
2929

3030
.mat-expansion-panel-header-title,
3131
.mat-expansion-panel-header-description {
32-
display: flex;
32+
display: block;
3333
flex-grow: 1;
3434
margin-right: 16px;
35+
overflow: hidden;
36+
white-space: nowrap;
37+
text-overflow: ellipsis;
38+
flex-basis: 5%;
3539

3640
[dir='rtl'] & {
3741
margin-right: 0;

0 commit comments

Comments
 (0)