web: fix autocomplete text color for all inputs (#2057)

Signed-off-by: Abdulrehman-Jafer <abdulrehmanjaferwork01233@gmail.com>
This commit is contained in:
Abdulrehman-Jafer
2023-03-06 14:53:35 +05:00
committed by GitHub
parent f842700192
commit dfa718f8ea
2 changed files with 6 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ function SearchBox(props) {
id="search"
name="search"
type="text"
sx={{ m: 0, mx: 1, mt: 1 }}
sx={{m: 0,mx: 1,mt: 1}}
placeholder="Type your query here"
onKeyDown={(e) => {
if (e.key === "Enter") props.onSearch(e.target.value);

View File

@@ -27,6 +27,11 @@ const defaultVariant: ThemeUIStyleObject = {
fontWeight: "body",
fontSize: "input",
color: "text",
":-webkit-autofill": {
WebkitTextFillColor: "var(--text)",
caretColor: "red",
fontSize: "inherit"
},
":focus": {
outline: "2px solid var(--primary)"
},