ic-design-system icon indicating copy to clipboard operation
ic-design-system copied to clipboard

[ic-date-picker] Validation in guidance needs update

Open gd2910 opened this issue 1 year ago • 1 comments

What component is this related to?

IcDatePicker currently shows error validation that would not exist.

If disablePast prop is true the user would not be able select a previous date and thus not ebter an error state

image

gd2910 avatar Oct 16 '24 15:10 gd2910

You can type in the date manually, but this example maybe needs to be cleared up and remove the picker part in the image all together.

This image is appearing in the Date Picker guidance but shows validation on the Date Input, which could be confusing. Suggestion: remove this image! And update guidance to say that you can't Pick an invalid date (validation won't trigger) but a user could type an invalid date - link to Date Input guidance section about Validation instead.

MI6-255 avatar Oct 23 '24 08:10 MI6-255