Dropdown revert

This commit is contained in:
Manav Rathi
2025-01-16 11:50:33 +05:30
parent 24aff9268a
commit 20bbd61fce

View File

@@ -51,6 +51,7 @@ export const DropdownInput = <T extends string>({
onChange={(event: SelectChangeEvent) => {
onSelect(event.target.value as T);
}}
variant="outlined"
displayEmpty
renderValue={() => {
// Return the value that is shown in the unexpanded state.
@@ -87,6 +88,17 @@ export const DropdownInput = <T extends string>({
},
},
}}
sx={{
// Remove the border in the quiescent state.
".MuiOutlinedInput-notchedOutline": {
borderColor: "transparent",
},
// Give the default appearance a background fill, similar to our
// text inputs.
".MuiSelect-select": {
backgroundColor: "fill.faint",
},
}}
>
{options.map(({ value, label }) => (
<MenuItem key={value} value={value}>