Skip to content

Commit c28c618

Browse files
skttlmadsrasmussen
andauthored
Fix alignment of menu-item parts (#935)
* Fix alignment of menu-item parts * apply suggestion from Bjarne --------- Co-authored-by: Mads Rasmussen <[email protected]>
1 parent 88c2c1a commit c28c618

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/uui-icon/lib/uui-icon.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ export class UUIIconElement extends LitElement {
141141
:host {
142142
display: inline-block;
143143
vertical-align: bottom;
144-
width: 1.15em;
145-
height: 1.15em;
144+
width: 1.125em;
145+
height: 1.125em;
146146
}
147147
148148
:host svg,

packages/uui-menu-item/lib/uui-menu-item.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,8 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
519519
height: 100%;
520520
display: flex;
521521
align-items: center;
522-
justify-content: center;
522+
justify-content: end;
523+
padding-inline-end: 3px;
523524
color: var(--uui-color-interactive);
524525
}
525526
@@ -553,7 +554,6 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
553554
554555
#icon {
555556
display: inline-flex;
556-
font-size: 16px;
557557
margin-right: var(--uui-size-2);
558558
}
559559

packages/uui-symbol-expand/lib/uui-symbol-expand.element.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class UUISymbolExpandElement extends LitElement {
3535
:host {
3636
display: inline-block;
3737
width: 12px;
38+
height: 12px;
3839
vertical-align: middle;
3940
}
4041

0 commit comments

Comments
 (0)