Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 8000c8e

Browse files
devversionThomasBurleson
authored andcommitted
fix(list): only fill minimum required height.
* The list currently always expects the list items inner content to have a height of `100%`. In some specific browser cases the inner content, will calculate the `100%` in relative to the top element. Which causes the list items to be as big as the browsers screen height. * The inner content, should only have a min-height, which is the same as the defined height on the `md-list-item` item. Just inheriting the min-height will automatically use the correct value. Fixes #8956. Closes #9045
1 parent 4efafcf commit 8000c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/list/list.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ md-list-item {
166166
.md-list-item-inner {
167167
// The list item content should fill the complete width.
168168
width: 100%;
169-
height: 100%;
169+
min-height: inherit;
170170
}
171171

172172
}

0 commit comments

Comments
 (0)