Skip to content

Date & Time Field revamp #2664

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

Merged
merged 44 commits into from
Apr 16, 2024
Merged

Date & Time Field revamp #2664

merged 44 commits into from
Apr 16, 2024

Conversation

finnar-bin
Copy link
Contributor

@finnar-bin finnar-bin commented Apr 5, 2024

Closes #2417

Screencast.from.04-11-2024.10.27.16.AM.webm

@finnar-bin finnar-bin self-assigned this Apr 5, 2024
@finnar-bin finnar-bin changed the title [WIP] Datetime Field revamp Date & Time Field revamp Apr 11, 2024
@finnar-bin finnar-bin marked this pull request as ready for review April 11, 2024 02:31
@finnar-bin finnar-bin added enhancement Improvement to an existing feature ready PR is complete and ready for deployment labels Apr 11, 2024
@finnar-bin finnar-bin requested a review from agalin920 April 11, 2024 02:31
sx={{
"& .Mui-focused.MuiAutocomplete-inputRoot fieldset.MuiOutlinedInput-notchedOutline":
{
borderColor: invalidInput
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confused as to why we have to do that at the css level? Is the error prop or FormControl wrap not working?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agalin920 This is so that the border stays red even if the user has the input focused and they're typing in an invalid time format. Default behavior of the input field turns it into orange when focused even if the error prop is true

@finnar-bin finnar-bin enabled auto-merge (squash) April 16, 2024 01:14
@finnar-bin finnar-bin requested a review from agalin920 April 16, 2024 01:15
@finnar-bin finnar-bin merged commit c566998 into dev Apr 16, 2024
@finnar-bin finnar-bin deleted the enhancement/datetimefield-revamp branch April 16, 2024 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature ready PR is complete and ready for deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content: Date Time Field Revamp
2 participants