chore(multiselect): move helper text below input

This commit is contained in:
josefaidt 2020-09-17 14:58:21 -05:00
commit c21608c4aa
2 changed files with 8 additions and 7 deletions

View file

@ -20,6 +20,7 @@ export const Default = () => ({
id: text("MultiSelect id", "multi-select-id"),
name: text("MultiSelect name", "multi-select-name"),
titleText: text("Title (titleText)", "Multiselect Title"),
helperText: text("Helper text (helperText)", "Optional helper text here"),
filterable: boolean("Filterable (filterable)", false),
selectionFeedback: select(
"Selection feedback (selectionFeedback)",

View file

@ -268,13 +268,6 @@
{titleText}
</label>
{/if}
{#if !inline && helperText}
<div
class:bx--form__helper-text="{true}"
class:bx--form__helper-text--disabled="{disabled}">
{helperText}
</div>
{/if}
<ListBox
aria-label="{ariaLabel}"
id="{id}"
@ -447,4 +440,11 @@
</ListBoxMenu>
{/if}
</ListBox>
{#if !inline && !invalid && helperText}
<div
class:bx--form__helper-text="{true}"
class:bx--form__helper-text--disabled="{disabled}">
{helperText}
</div>
{/if}
</div>