Skip to content

Commit

Permalink
fix: input height fixes #1179, #1308
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Feb 13, 2024
1 parent 058a5b8 commit 90e92e6
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { PrizmInputCommonModule } from '../common';
:host {
display: flex;
align-items: center;
height: 100%;
}
`,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { PrizmInputCommonModule } from '../common';
:host {
display: flex;
align-items: center;
height: 100%;
}
`,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
}

cursor: pointer;
height: 100%;
}

color: var(--prizm-v3-button-secondary-solid-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
display: flex;
align-items: center;
flex-grow: 1;

// Hack for height in percents for buttons inside controls
height: 1px;
}

&-body {
Expand Down Expand Up @@ -204,11 +207,23 @@
&-inner {
min-height: 44px;

&:not(:has(prizm-chips)) {
max-height: 44px;
}

&[data-size='l'] {
min-height: 44px;

&:not(:has(prizm-chips)) {
max-height: 44px;
}
}
&[data-size='m'] {
min-height: 36px;

&:not(:has(prizm-chips)) {
max-height: 36px;
}
}
}

Expand All @@ -218,14 +233,30 @@
&-outer {
min-height: 32px;

&:not(:has(prizm-chips)) {
max-height: 32px;
}

&[data-size='l'] {
min-height: 40px;

&:not(:has(prizm-chips)) {
max-height: 40px;
}
}
&[data-size='m'] {
min-height: 32px;

&:not(:has(prizm-chips)) {
max-height: 32px;
}
}
&[data-size='s'] {
min-height: 24px;

&:not(:has(prizm-chips)) {
max-height: 24px;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
:host {
height: 100%;
}
.container {
display: flex;
flex-direction: column;
height: 100%;

[prizmInputIconButton] {
height: 50%;
}
}

:host-context(.prizm-input-form-outer[data-size='m']) {
Expand Down

0 comments on commit 90e92e6

Please sign in to comment.