mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
fix(date-picker): display warn/invalid icons in input with calendar (#1508)
Fixes #1498
This commit is contained in:
parent
139e23fdcc
commit
a657b6e334
1 changed files with 10 additions and 12 deletions
|
@ -138,7 +138,6 @@
|
|||
}}"
|
||||
on:paste
|
||||
/>
|
||||
{#if !$hasCalendar}
|
||||
{#if invalid}
|
||||
<WarningFilled
|
||||
class="bx--date-picker__icon bx--date-picker__icon--invalid"
|
||||
|
@ -149,8 +148,7 @@
|
|||
class="bx--date-picker__icon bx--date-picker__icon--warn"
|
||||
/>
|
||||
{/if}
|
||||
{/if}
|
||||
{#if $hasCalendar}
|
||||
{#if $hasCalendar && !invalid && !warn}
|
||||
<Calendar
|
||||
class="bx--date-picker__icon"
|
||||
aria-label="{iconDescription}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue