fix: consistent height and focus states

This commit is contained in:
Christian Andolf
2025-06-13 12:17:23 +02:00
parent 73884aa428
commit ce399e696d
4 changed files with 17 additions and 8 deletions

View File

@@ -5,8 +5,8 @@
border-radius: var(--Corner-radius-md);
display: grid;
min-width: 0; /* allow shrinkage */
height: 60px;
padding: var(--Space-x1) var(--Space-x2);
height: 56px;
padding: var(--Space-x15);
box-sizing: border-box;
cursor: text;

View File

@@ -3,6 +3,7 @@
background-color: var(--Surface-UI-Fill-Default);
border: 1px solid var(--Border-Interactive-Default);
border-radius: var(--Corner-radius-md);
height: 56px;
&[data-required] .label::after {
content: ' *';
@@ -17,7 +18,8 @@
}
}
&[data-focused] {
border-color: var(--Border-Interactive-Focus);
outline-offset: -2px;
outline: 2px solid var(--Border-Interactive-Focus);
.button,
.input {