Skip to content
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

Control DatePicker validation error variant #3641

Open
estoksam opened this issue Oct 3, 2024 · 0 comments
Open

Control DatePicker validation error variant #3641

estoksam opened this issue Oct 3, 2024 · 0 comments

Comments

@estoksam
Copy link

estoksam commented Oct 3, 2024

Is your feature request related to a problem? Please describe.

We have up until now controlled validation of the selected date ourselves and set the date picker variant to error when the date is incorrect and the user can't continue unless another date is selected. We see warning as something the user must consider before the proceed with a value the system considers suspect.

Now, we want the calendar to no longer allow the user to select an incorrect value outside the allowed range and found the min/max limits on the DatePicker. Unfortunately, this overrides our "error" variant and always chooses "warning".

Describe the solution you'd like

Maybe a property called "validationErrorVariant"?

Describe alternatives you've considered

No solution is possible because this is entirely controlled by the date picker.

Additional context

The helper text is also overridden which could cause problems for other use cases than ours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant