Skip to content

Commit a008022

Browse files
authored
fix(ui5-li): fix delete list item button height (#221)
1 parent e27c445 commit a008022

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/main/src/ListItem.hbs

+4-2
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@
4343
{{/if}}
4444

4545
{{#if modeDelete}}
46-
<ui5-button
46+
<div class="sapMDeleteListItemButton">
47+
<ui5-button
4748
id="{{ctr._id}}-deleteSelectionControl"
4849
type="Transparent"
4950
icon="sap-icon://decline"
5051
@press="{{ctr._fnOnDelete}}"
51-
></ui5-button>
52+
></ui5-button>
53+
</div>
5254
{{/if}}
5355
{{/inline}}

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

+5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
-webkit-box-align: center;
5858
align-items: center;
5959
}
60+
61+
.sapMDeleteListItemButton {
62+
display: flex;
63+
align-items: center;
64+
}
6065
}
6166

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

0 commit comments

Comments
 (0)