Merged in fix/height-input-select-fields (pull request #3146)

fix height value for input and select fields

* fix height value for input and select fields


Approved-by: Joakim Jäderberg
This commit is contained in:
Bianca Widstam
2025-11-13 10:26:58 +00:00
parent f6b06556f6
commit c1cae0db40
4 changed files with 8 additions and 17 deletions

View File

@@ -1,6 +1,3 @@
@value globals: "../../styles/globals.css";
@value inputContainerHeight, inputExpandedHeight from globals;
.container {
align-content: center;
background-color: var(--Surface-Primary-Default);
@@ -8,7 +5,7 @@
border-radius: var(--Corner-radius-md);
display: grid;
min-width: 0; /* allow shrinkage */
height: inputContainerHeight;
height: 56px;
padding: 0 var(--Space-x15);
box-sizing: border-box;
cursor: text;
@@ -48,7 +45,7 @@
&:focus,
&:placeholder-shown,
&[value]:not([value='']) {
height: inputExpandedHeight;
height: 24px;
outline: none;
}
@@ -61,7 +58,7 @@
@media (hover: hover) {
.input:active:not(:disabled) {
height: inputExpandedHeight;
height: 24px;
outline: none;
}
}

View File

@@ -1,12 +1,9 @@
@value globals: "../../styles/globals.css";
@value inputContainerHeight, inputExpandedHeight from globals;
.select {
position: relative;
background-color: var(--Surface-UI-Fill-Default);
border: 1px solid var(--Border-Interactive-Default);
border-radius: var(--Corner-radius-md);
height: inputContainerHeight;
height: 56px;
box-sizing: border-box;
&[data-required] .label::after {
@@ -18,7 +15,7 @@
}
.selectedText {
min-height: inputExpandedHeight;
min-height: 24px;
}
}
&[data-focused] {
@@ -30,7 +27,7 @@
outline: none;
}
.input {
min-height: inputExpandedHeight;
min-height: 24px;
}
.label {
color: var(--Text-Interactive-Focus);
@@ -98,7 +95,7 @@
width: 100%;
&[value]:not([value='']) {
min-height: inputExpandedHeight;
min-height: 24px;
}
}
@@ -109,7 +106,7 @@
}
.selectedText:not(:empty) {
min-height: inputExpandedHeight;
min-height: 24px;
}
.displayText {

View File

@@ -1,4 +1,3 @@
@import url(./styles/globals.css);
@import url(./styles/impl.css);
@import url(./styles/base.css);
@import url(./styles/downtown-camper.css);

View File

@@ -1,2 +0,0 @@
@value inputContainerHeight: 56px;
@value inputExpandedHeight: 24px;