Skip to content

Commit

Permalink
update height
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrickert committed Mar 7, 2024
1 parent dacbc93 commit 1ef7a40
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/sit-onyx/src/components/OnyxInput/OnyxInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ const handleChange = (event: Event) => {
color: var(--onyx-color-text-icons-neutral-medium);
}
$padding-vertical: var(--onyx-spacing-2xs);
$line-height: 1.5rem;
&__wrapper {
border-radius: var(--onyx-radius-sm);
border: var(--onyx-1px-in-rem) solid var(--onyx-color-base-neutral-300);
Expand All @@ -79,7 +82,10 @@ const handleChange = (event: Event) => {
gap: var(--onyx-spacing-2xs);
font-size: 1rem;
line-height: 1.5rem;
line-height: $line-height;
height: calc($line-height + 2 * $padding-vertical);
box-sizing: border-box;
&:has(.onyx-input__native:enabled:hover) {
border-color: var(--onyx-color-base-primary-400);
Expand All @@ -93,7 +99,7 @@ const handleChange = (event: Event) => {
}
&__native {
padding: var(--onyx-spacing-2xs) var(--onyx-spacing-sm);
padding: $padding-vertical var(--onyx-spacing-sm);
// reset native input styles so they are inherited from the parent
border: none;
Expand Down

0 comments on commit 1ef7a40

Please sign in to comment.