Skip to content

Commit b4fda14

Browse files
committed
fix(material/list): list item truncates on narrow screenwidths
Updates Angular Components List item component height if the list item has 3 lines. With the previous list item height of 88px the bottom lines letters like 'g' get cut off and less readable. Fixes b/247881646
1 parent 56237df commit b4fda14

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/material/list/list.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ a.mdc-list-item--activated {
167167
height: 25px;
168168
}
169169

170+
// Increased list item height if it has multiple lines so bottom line doesn't get
171+
// cut off.
172+
.mat-mdc-list-item.mdc-list-item--with-three-lines {
173+
min-height: 90px;
174+
}
175+
170176
.mat-mdc-list-item.mdc-list-item--with-three-lines,
171177
.mat-mdc-list-item.mdc-list-item--with-two-lines {
172178
// List item lines must wrap according to GAR 1.18(b). Removing the nowrap and
@@ -177,9 +183,6 @@ a.mdc-list-item--activated {
177183
white-space: normal;
178184
line-height: normal;
179185
}
180-
.mat-mdc-list-item-title.mdc-list-item__primary-text {
181-
height: 45px;
182-
}
183186

184187
// Unscoped content can wrap if the list item has acquired three lines. MDC implements
185188
// this functionality for secondary text but there is no proper text ellipsis when

0 commit comments

Comments
 (0)