From 56dfaba6246135ba51baee37c93b01af9b3197b4 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 1 Feb 2021 19:01:43 +0000 Subject: [PATCH] Add error state styles to date picker field --- .../src/forms/DateTimeField.svelte | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/standard-components/src/forms/DateTimeField.svelte b/packages/standard-components/src/forms/DateTimeField.svelte index 591acededb..7bf6bf7ac1 100644 --- a/packages/standard-components/src/forms/DateTimeField.svelte +++ b/packages/standard-components/src/forms/DateTimeField.svelte @@ -57,7 +57,8 @@
+ class="spectrum-Textfield spectrum-InputGroup-textfield" + class:is-invalid={!$fieldState.valid}> + {#if !$fieldState.valid} + + {/if} @@ -79,6 +89,7 @@ type="button" class="spectrum-Picker spectrum-InputGroup-button" tabindex="-1" + class:is-invalid={!$fieldState.valid} on:click={flatpickr?.open}>