Skip to content

Commit 8420492

Browse files
authored
fix(ui5-button): align buttons with and without icons on same line (#796)
FIXES: #795
1 parent 6d34b50 commit 8420492

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/main/src/themes/Button.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373

7474
.ui5-button-root .ui5-button-icon {
7575
font-size: var(--_ui5_button_base_icon_only_font_size);
76+
height: 0;
77+
top: -.5rem;
7678
position: relative;
7779
color: inherit;
7880
}

packages/main/test/sap/ui/webcomponents/main/pages/Button.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@
3333
<br />
3434
<br />
3535

36+
<div>
37+
<ui5-togglebutton design="Positive" icon="sap-icon://add"></ui5-togglebutton>
38+
<ui5-togglebutton design="Negative"></ui5-togglebutton>
39+
</div>
40+
41+
<br />
42+
<br />
43+
3644
<ui5-input id="press-counter"></ui5-input>
3745
<ui5-input id="click-counter"></ui5-input>
3846

0 commit comments

Comments
 (0)