Skip to content

Commit db17c71

Browse files
authored
fix(ui5-li): height with title and description in Compact (#70)
Height of list item with both title and description should be 5rem in both Cozy and Compact.
1 parent 4d8d510 commit db17c71

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

packages/main/src/themes/base/ListItem.less

+11-9
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@
1616
color: @sapUiListActiveTextColor;
1717
}
1818

19-
&.sapMSLIWithTitleAndDescription {
20-
height: 5rem;
21-
padding: 1rem;
22-
23-
.sapMSLITitle {
24-
padding-bottom: 0.375rem;
25-
}
26-
}
27-
2819
.sapMSLITextWrapper {
2920
display: flex;
3021
flex-direction: column;
@@ -68,6 +59,17 @@
6859
}
6960
}
7061

62+
/* ListItem with title and description (should be 5rem in height in both compact and cozy) */
63+
.sapUiSizeCompact .sapMSLI.sapMSLIWithTitleAndDescription,
64+
.sapMSLI.sapMSLIWithTitleAndDescription {
65+
height: 5rem;
66+
padding: 1rem;
67+
68+
.sapMSLITitle {
69+
padding-bottom: 0.375rem;
70+
}
71+
}
72+
7173
/* Compact size */
7274
.sapUiSizeCompact {
7375
.sapMSLI {

0 commit comments

Comments
 (0)