mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
chore(select): move helper text below input
This commit is contained in:
parent
544d48d2e8
commit
8ec9a7137f
2 changed files with 8 additions and 7 deletions
|
@ -118,13 +118,6 @@
|
|||
{labelText}
|
||||
</label>
|
||||
{/if}
|
||||
{#if !inline && helperText}
|
||||
<div
|
||||
class:bx--form__helper-text="{true}"
|
||||
class:bx--form__helper-text--disabled="{disabled}">
|
||||
{helperText}
|
||||
</div>
|
||||
{/if}
|
||||
{#if inline}
|
||||
<div class:bx--select-input--inline__wrapper="{true}">
|
||||
<div
|
||||
|
@ -188,6 +181,13 @@
|
|||
<WarningFilled16 class="bx--select__invalid-icon" />
|
||||
{/if}
|
||||
</div>
|
||||
{#if !invalid && helperText}
|
||||
<div
|
||||
class:bx--form__helper-text="{true}"
|
||||
class:bx--form__helper-text--disabled="{disabled}">
|
||||
{helperText}
|
||||
</div>
|
||||
{/if}
|
||||
{#if invalid}
|
||||
<div id="{errorId}" class:bx--form-requirement="{true}">
|
||||
{invalidText}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue