Skip to content

Commit 701e44e

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 447f2e6 commit 701e44e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,13 @@
4242

4343
.mat-expansion-panel-header-title,
4444
.mat-expansion-panel-header-description {
45-
display: flex;
45+
display: block;
4646
flex-grow: 1;
4747
margin-right: 16px;
48+
overflow: hidden;
49+
white-space: nowrap;
50+
text-overflow: ellipsis;
51+
flex-basis: 5%;
4852

4953
[dir='rtl'] & {
5054
margin-right: 0;

0 commit comments

Comments
 (0)