Skip to content

Commit

Permalink
fix(ui5-li): fix delete list item button height (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid authored Mar 20, 2019
1 parent e27c445 commit a008022
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/main/src/ListItem.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@
{{/if}}

{{#if modeDelete}}
<ui5-button
<div class="sapMDeleteListItemButton">
<ui5-button
id="{{ctr._id}}-deleteSelectionControl"
type="Transparent"
icon="sap-icon://decline"
@press="{{ctr._fnOnDelete}}"
></ui5-button>
></ui5-button>
</div>
{{/if}}
{{/inline}}
5 changes: 5 additions & 0 deletions packages/main/src/themes/base/ListItem.less
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
-webkit-box-align: center;
align-items: center;
}

.sapMDeleteListItemButton {
display: flex;
align-items: center;
}
}

/* ListItem with title and description (should be 5rem in height in both compact and cozy) */
Expand Down

0 comments on commit a008022

Please sign in to comment.