Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Apr 7, 2018

Handles long text inside the mat-panel-title and mat-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.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 7, 2018
@@ -29,9 +29,13 @@

.mat-expansion-panel-header-title,
.mat-expansion-panel-header-description {
display: flex;
display: block;
Copy link
Member

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?

Copy link
Member Author

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.

@josephperrott josephperrott added the target: patch This PR is targeted for the next patch release label Jul 30, 2018
josephperrott
josephperrott previously approved these changes Aug 7, 2018
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josephperrott josephperrott added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Aug 7, 2018
@cnd5041
Copy link

cnd5041 commented Oct 4, 2018

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?

@mmalerba mmalerba added aaa and removed aaa labels Apr 25, 2019
@andrewseguin andrewseguin added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label May 30, 2019
@takahser
Copy link
Contributor

nice, thanks a lot!
hope this will be merged at some point

@josephperrott josephperrott removed their assignment Oct 15, 2019
@crisbeto crisbeto force-pushed the 10744/expansion-header-long-text branch from b384836 to 701e44e Compare April 19, 2020 11:58
@mmalerba mmalerba removed the lgtm label Jul 31, 2020
@andrewseguin andrewseguin removed the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 29, 2021
@crisbeto
Copy link
Member Author

crisbeto commented Mar 2, 2022

I looked into rebasing this one, but it'll cause a regression of the fix from #12161.

@crisbeto crisbeto force-pushed the 10744/expansion-header-long-text branch from 701e44e to d6de7f2 Compare March 25, 2022 13:51
@crisbeto crisbeto requested a review from andrewseguin as a code owner March 25, 2022 13:51
@crisbeto crisbeto changed the title fix(expansion-panel): handle long text inside panel header title and description fix(material/expansion-panel): handle long text inside panel header title and description Mar 25, 2022
…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.
@crisbeto crisbeto force-pushed the 10744/expansion-header-long-text branch from d6de7f2 to 12d4116 Compare March 25, 2022 14:13
@andrewseguin andrewseguin removed the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Mar 28, 2022
@andrewseguin andrewseguin added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Apr 22, 2022
@josephperrott josephperrott requested a review from a team as a code owner December 18, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Long expansion panel descriptions overflow the panel.
8 participants