momentum-design / momentum-ui

Momentum UI is a collection of UI libraries for implementing Momentum Design into web applications and websites.
https://momentum.design
MIT License
199 stars 204 forks source link

fix(md-datepicker): style fix and applying placeholder #1443

Closed shivi956 closed 1 year ago

shivi956 commented 1 year ago

Styling Fix in md-datepicker and applying custom placeholder to calendar without failing validation for the first time.

Description

The box is always red for the first time , ( we need to add a default value of YYY-MM-DD (placeholder)) but that is also failing on validation .)

Screenshots on the basis :

  1. We don't need to send a value attribute to the calender
  2. This is for the first time when the input box is not dirty , and the input box is dirty then red is acceptable.

Related Issue

N/A

Motivation and Context

Now we can set the placeholder values and the validation will not fail for the first time.

How Has This Been Tested?

Tested Locally setting up the project

Screenshots:

Before (If applicable):

image

After

image

Types of changes

Checklist: