From d4f6c2de01831bc25cbfbed17ce331015852bdaf Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 25 Feb 2023 10:32:16 -0800 Subject: [PATCH] fix(text-input): avoid overlapping readonly/invalid icons --- src/TextInput/TextInput.svelte | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/TextInput/TextInput.svelte b/src/TextInput/TextInput.svelte index bf1ac1db..e2eb5d19 100644 --- a/src/TextInput/TextInput.svelte +++ b/src/TextInput/TextInput.svelte @@ -166,17 +166,18 @@ class:bx--text-input__field-wrapper="{true}" class:bx--text-input__field-wrapper--warning="{!invalid && warn}" > - {#if invalid} - - {/if} - {#if !invalid && warn} - - {/if} {#if readonly} + {:else} + {#if invalid} + + {/if} + {#if !invalid && warn} + + {/if} {/if}