Allow displaying icon in TextInput component (#37951)
This commit is contained in:
@@ -20,6 +20,15 @@
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.iconWrapper & {
|
||||
// Make space for icon displayed at start of input
|
||||
padding-inline-start: 36px;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline-color: var(--color-text-brand);
|
||||
}
|
||||
@@ -40,3 +49,17 @@
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
.iconWrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.icon {
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
inset-inline-start: 10px;
|
||||
inset-block-start: 10px;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user