Skip to content

Commit 1e70e9b

Browse files
authored
Merge pull request #586 from UTDNebula/fix/autocomplete-background
make mui autocomplete same color
2 parents fb4c9e2 + d6b9a9c commit 1e70e9b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/components/AutoCompleteMajor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ const AutoCompleteMajor: FC<AutoCompleteMajorProps & React.ComponentPropsWithout
5656
onInputChange(query);
5757
}}
5858
options={options}
59+
sx={{ border: '1px solid var(--color-neutral-500)', borderRadius: '0.375rem' }}
5960
fullWidth
6061
PopperComponent={CustomPopper}
6162
renderInput={(params) => {
6263
return (
6364
<TextField
6465
{...params}
6566
variant="standard"
66-
className="h-11 appearance-none rounded border border-[#6366F1] bg-[#F5F5F5] pl-4 text-[14px] font-semibold text-black outline-none"
67+
className="h-11 appearance-none pl-4 text-[14px] font-semibold text-black outline-none"
6768
inputProps={{
6869
style: { fontSize: 14, marginTop: 8 },
6970
...params.inputProps,

src/components/template/CustomPlan.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export default function CustomPlan({ onDismiss }: { onDismiss: () => void }) {
281281
<div className="relative mb-4">
282282
<AutoCompleteMajor
283283
data-testid="major-autocomplete"
284-
className="w-[500px] rounded border outline-none"
284+
className="w-[500px] outline-none"
285285
key={0}
286286
onValueChange={(value) => setMajor(value)}
287287
onInputChange={(query: string) => updateQuery(query)}

src/components/template/TemplateView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default function TemplateView({ onDismiss }: { onDismiss: () => void }) {
121121
<p className="text-sm font-semibold">Search degree template</p>
122122
<div className="relative mb-4">
123123
<AutoCompleteMajor
124-
className="w-[500px] rounded border outline-none"
124+
className="w-[500px] outline-none"
125125
key={0}
126126
onValueChange={(value) => setMajor(value)}
127127
onInputChange={(query: string) => updateQuery(query)}

0 commit comments

Comments
 (0)