Skip to content

Commit d6b9a9c

Browse files
committed
make mui autocomplete same color
1 parent b7f1af1 commit d6b9a9c

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
@@ -270,7 +270,7 @@ export default function CustomPlan({ onDismiss }: { onDismiss: () => void }) {
270270
<div className="relative mb-4">
271271
<AutoCompleteMajor
272272
data-testid="major-autocomplete"
273-
className="w-[500px] rounded border outline-none"
273+
className="w-[500px] outline-none"
274274
key={0}
275275
onValueChange={(value) => setMajor(value)}
276276
onInputChange={(query: string) => updateQuery(query)}

src/components/template/TemplateView.tsx

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

0 commit comments

Comments
 (0)