diff --git a/packages/main/src/themes/base/ListItem.less b/packages/main/src/themes/base/ListItem.less index fc24469739bd..788a843d6aa3 100644 --- a/packages/main/src/themes/base/ListItem.less +++ b/packages/main/src/themes/base/ListItem.less @@ -16,15 +16,6 @@ color: @sapUiListActiveTextColor; } - &.sapMSLIWithTitleAndDescription { - height: 5rem; - padding: 1rem; - - .sapMSLITitle { - padding-bottom: 0.375rem; - } - } - .sapMSLITextWrapper { display: flex; flex-direction: column; @@ -68,6 +59,17 @@ } } +/* ListItem with title and description (should be 5rem in height in both compact and cozy) */ +.sapUiSizeCompact .sapMSLI.sapMSLIWithTitleAndDescription, +.sapMSLI.sapMSLIWithTitleAndDescription { + height: 5rem; + padding: 1rem; + + .sapMSLITitle { + padding-bottom: 0.375rem; + } +} + /* Compact size */ .sapUiSizeCompact { .sapMSLI {