-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Allow specifying number of lines in a mat-list-item #15466
Comments
@calebegg can you post what your template looks like? Rather than adding a separate API, it might make sense to mark our query as |
Oh, that would work. I didn't know it would be that easy. It's basically something like:
I'd be tempted to put mat-line on the timestamp and status divs as well if I didn't understand how it worked, so I'm not sure if it's exactly clear what's happening, but it would definitely solve the issue for me and I think it would be an improvement over what we have now. |
Fixes the `mat-list-item` not picking up `mat-line`, if it's not a direct descendant. Fixes angular#15466.
Fixes the `mat-list-item` not picking up `mat-line`, if it's not a direct descendant. Fixes #15466.
Fixes the `mat-list-item` not picking up `mat-line`, if it's not a direct descendant. Fixes #15466.
Fixes the `mat-list-item` not picking up `mat-line`, if it's not a direct descendant. Fixes #15466.
Fixes the `mat-list-item` not picking up `mat-line`, if it's not a direct descendant. Fixes angular#15466.
Fixes the `mat-list-item` not picking up `mat-line`, if it's not a direct descendant. Fixes #15466.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The framework tries to be clever and count the mat-line children to determine whether to put mat-2-line and mat-3-line classes on a mat-list-item. Sometimes, though, the real contents is too complex to have top-level mat-line items, and I just want to specify that I want the mat-3-line styling. However, if I add this class myself, Angular helpfully removes it :/
It'd be great to be able to specify this somehow, possibly just through the class, or through a mat-3-line directive.
Right now, my workaround is to put some empty divs in like:
The text was updated successfully, but these errors were encountered: