I have implemented the paper-input
element with a pattern and an error message.
<paper-input label="Horas" name="hours" auto-validate required pattern="([0]:[0-5][0-9])|([1-9]|[1][0-9]|2[0-3])(:[0-5][0-9])?" error-message="Invalid hour format"></paper-input>
When an incorrect hour is entered in the paper-input
, the error message is displayed in red. This error message is utilized by paper-input-container/error
and is styled in red.
I aim to modify the color of the paper-input
. Although changing it directly in the HTML works, I prefer to have the CSS styling in a separate CSS file, such as
custom-style-paper-input-error.html
and custom-style-paper-input-container.html
.
The goal is to override the CSS of the paper-input
component with my custom styles: css-custom
.