-
Notifications
You must be signed in to change notification settings - Fork 928
feat: adding active and hover states to search input #2741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -106,19 +106,15 @@ export const SearchBarWithFilter: React.FC<SearchBarWithFilterProps> = ({ | |||
)} | |||
|
|||
<form onSubmit={form.handleSubmit} className={styles.filterForm}> | |||
<TextField | |||
<OutlinedInput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this because TextField is a nightmare to style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice! Does OutlinedInput
also have an error state? Maybe we can use a reddish border when the query is erroneous.
Yes, it should! Working on that now after looking at the test failures. |
Nice addition! I checked that other form fields (like on the Account page) have the error outline and error message using the color |
@AbhineetJain We are using the same outline colors! I think it's a standard for MUI inputs but idk the whole palette history, tbh: |
@@ -152,29 +149,39 @@ export const SearchBarWithFilter: React.FC<SearchBarWithFilterProps> = ({ | |||
) | |||
} | |||
|
|||
const useStyles = makeStyles((theme) => ({ | |||
interface StyleProps { | |||
error?: unknown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
This could just be a boolean
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! I'm putting up another PR right after this one with more style improvements and I promise I'll fix it there. π€
Couple of improvements:
Before:
After:
