-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/expansion-panel): handle long text inside panel header title and description #10750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -29,9 +29,13 @@ | |||
|
|||
.mat-expansion-panel-header-title, | |||
.mat-expansion-panel-header-description { | |||
display: flex; | |||
display: block; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be inline block, or are we relying on flex to handle the non-blocking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need it to be a block for the ellipsis overflow to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Just a thought; material-ui expands to fit the text (example: https://codesandbox.io/s/917pm83o5r). Would it be better to follow that practice, rather than ellipsis? |
nice, thanks a lot! |
b384836
to
701e44e
Compare
I looked into rebasing this one, but it'll cause a regression of the fix from #12161. |
701e44e
to
d6de7f2
Compare
…nd description Handles long text inside the `mat-panel-title` and `mat-panel-description`. Previously the text would continue wrapping and overflowing the header. Fixes angular#10744.
d6de7f2
to
12d4116
Compare
Handles long text inside the
mat-panel-title
andmat-panel-description
. Previously the text would continue wrapping and overflowing the header.Fixes #10744.
Caretaker note (crisbeto): Lots of screenshot diffs, may have to come up with a different approach.