Skip to content

Commit

Permalink
fix(ui5-li): height with title and description in Compact (#70)
Browse files Browse the repository at this point in the history
Height of list item with both title and description should be 5rem in both Cozy and Compact.
  • Loading branch information
ilhan007 authored Feb 18, 2019
1 parent 4d8d510 commit db17c71
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions packages/main/src/themes/base/ListItem.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@
color: @sapUiListActiveTextColor;
}

&.sapMSLIWithTitleAndDescription {
height: 5rem;
padding: 1rem;

.sapMSLITitle {
padding-bottom: 0.375rem;
}
}

.sapMSLITextWrapper {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit db17c71

Please sign in to comment.