My goal is to make the input text turn red when the date picker is within an element with the class 'has-Error'.
Below is an example of what I tried on my index.html page, but unfortunately it didn't work:
<style is="custom-style">
:root {
--primary-color: #1ab394;
--light-primary-color: var(--paper-teal-100);
}
html {
.has-error {
--paper-input-container-label: { color: red }
}
--paper-input-container-label: { font-size: 12px }
--paper-input-container-label-focus: { font-size:12px; font-weight:500 }
--paper-input-container-input: { font-size:12px }
--vaadin-date-picker-overlay: { max-height:400px }
}
</style>
It seems like the date-picker is using a paper-input, and I'm struggling to apply a conditional style.
edit: I have added the HTML:
[ngClass]="{'has-error':hasErrors('value')}" class="form-group md-form-group">
<vaadin-date-picker [disableCond]="" [formControl]="" label=""></vaadin-date-picker>