Skip to content

Commit 4a52be6

Browse files
fix(ui5-button): fix end-icon margin (#12777)
fix: #12710
1 parent 7bdad89 commit 4a52be6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/main/src/themes/Button.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,14 @@ bdi {
377377
top:0;
378378
}
379379

380-
:host([has-end-icon]) .ui5-button-root {
380+
:host([has-end-icon]:not([icon])) .ui5-button-root {
381381
justify-content: flex-start;
382382
}
383383

384384
:host([icon-only]) .ui5-button-root {
385385
justify-content: center;
386386
}
387387

388-
:host([has-end-icon]) .ui5-button-end-icon {
388+
:host([has-end-icon]:not([icon])) .ui5-button-end-icon {
389389
margin-left: auto;
390390
}

packages/main/test/pages/Button.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</head>
2020

2121
<body class="button1auto">
22-
<ui5-button design="Negative" icon="decline">Reject</ui5-button>
22+
<ui5-button design="Negative" icon="decline" end-icon="add">Reject</ui5-button>
2323
<ui5-button design="Positive" icon="add">Add</ui5-button>
2424
<ui5-button icon="home" id="icon-only-comment"><!----><!----></ui5-button>
2525
<ui5-button icon="text" id="icon-only-blank-text"> </ui5-button>

0 commit comments

Comments
 (0)