diff --git a/src/components/base/base-search-box.tsx b/src/components/base/base-search-box.tsx index 19ede110..bffb5078 100644 --- a/src/components/base/base-search-box.tsx +++ b/src/components/base/base-search-box.tsx @@ -35,7 +35,6 @@ export const BaseSearchBox = styled((props: SearchProps) => { } as React.CSSProperties, inheritViewBox: true, }; - const active = "var(--primary-main)"; const onChange = (e: ChangeEvent) => { props.onSearch( @@ -99,7 +98,7 @@ export const BaseSearchBox = styled((props: SearchProps) => { { setMatchCase(!matchCase); }} @@ -111,7 +110,7 @@ export const BaseSearchBox = styled((props: SearchProps) => { { setMatchWholeWord(!matchWholeWord); }} @@ -122,7 +121,7 @@ export const BaseSearchBox = styled((props: SearchProps) => {
{ setUseRegularExpression(!useRegularExpression); @@ -133,11 +132,19 @@ export const BaseSearchBox = styled((props: SearchProps) => { ), }} + {...props} /> ); })(({ theme }) => ({ "& .MuiInputBase-root": { background: theme.palette.mode === "light" ? "#fff" : undefined, + "padding-right": "4px", + }, + "& .MuiInputBase-root svg[aria-label='active'] path": { + fill: theme.palette.primary.light, + }, + "& .MuiInputBase-root svg[aria-label='inactive'] path": { + fill: "#A7A7A7", }, }));