Skip to content

Commit 0681615

Browse files
authored
fix: Set height for input prepend/append slots (#1113)
set height
1 parent 1363b09 commit 0681615

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ export class UUIInputElement extends UUIFormControlMixin(
508508
display: flex;
509509
align-items: center;
510510
line-height: 1;
511+
height: 100%;
511512
}
512513
513514
::slotted(uui-input),

packages/uui-input/lib/uui-input.story.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ export const MultipleInputs: Story = {
179179
},
180180
};
181181

182+
export const InputAlignment: Story = {
183+
render: args =>
184+
html`<uui-input ${spread(args)}>${renderSlots(args)}</uui-input><uui-input
185+
${spread(args)}
186+
>${renderSlots(args)}</uui-input
187+
>`,
188+
};
189+
182190
export const AutoWidth: Story = {
183191
render: args =>
184192
html`<uui-input ${spread(args)}></uui-input>

0 commit comments

Comments
 (0)