-
Notifications
You must be signed in to change notification settings - Fork 4
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
Select use placeholder #705
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
}), | ||
dropdownIndicator: (baseStyles: any, state: { isFocused: any }) => ({ | ||
...baseStyles, | ||
color: state.isFocused ? "#7586a0" : "#b4bbc8", |
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.
Our custom styles dont seem to work with react-select's styling so I had to hard code these colors
@BrandonLim8890 im gonna implement disabling the button until all fields are filled out in #704 since I think it makes more sense there |
}), | ||
dropdownIndicator: (baseStyles: any, state: { isFocused: any }) => ({ | ||
...baseStyles, | ||
color: state.isFocused ? "#7586a0" : "#b4bbc8", |
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.
color: state.isFocused ? "#7586a0" : "#b4bbc8", | |
color: state.isFocused ? `${neutral.main.300}` : "#b4bbc8", |
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.
LGTM!
Description
Closes #696
Use react-select's placeholder attribute which lets you set placeholder text that is gray instead of black. Replaced noValueOptionLabel with placeholder which also removes the default value option from the list.
Other minor changes:
Before:
Screen.Recording.2024-02-07.at.5.11.30.PM.mov
After:
Screen.Recording.2024-02-07.at.5.12.18.PM.mov
Type of change
Please tick the boxes that best match your changes.
yarn install
yarn dev:migration:run
How Has This Been Tested?
Please describe how you tested this PR (both manually and with tests) Provide instructions so we can reproduce.
Checklist: