Skip to content

Commit 12d4116

Browse files
committed
fix(material/expansion): 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 add5a21 commit 12d4116

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@
5252

5353
.mat-expansion-panel-header-title,
5454
.mat-expansion-panel-header-description {
55-
display: flex;
55+
display: block;
5656
flex-grow: 1;
5757
margin-right: 16px;
58-
align-items: center;
58+
overflow: hidden;
59+
white-space: nowrap;
60+
text-overflow: ellipsis;
61+
flex-basis: 5%;
5962

6063
[dir='rtl'] & {
6164
margin-right: 0;

0 commit comments

Comments
 (0)