Allow displaying icon in TextInput component (#37951)

This commit is contained in:
diondiondion authored and GitHub committed 2026-02-23 14:12:02 +00:00
1 parent b785f05ddb
commit e0cc3a30ef
7 files changed
+146 -40

No files matched your search

@@ -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);
}