mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(1684): hide helper text container in password input when not used (#1685)
This commit is contained in:
parent
d2e471bbec
commit
42349ebc61
2 changed files with 5 additions and 1 deletions
|
@ -50,3 +50,7 @@ Set prop `type` to `"text"` to toggle password visibility.
|
||||||
## Disabled state
|
## Disabled state
|
||||||
|
|
||||||
<PasswordInput disabled labelText="Password" placeholder="Enter password..." />
|
<PasswordInput disabled labelText="Password" placeholder="Enter password..." />
|
||||||
|
|
||||||
|
## With helper text
|
||||||
|
|
||||||
|
<PasswordInput helperText="Your password should be hard to guess" labelText="Password" placeholder="Enter password..." />
|
||||||
|
|
|
@ -248,7 +248,7 @@
|
||||||
{invalidText}
|
{invalidText}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if !invalid && !warn && !isFluid && !inline}
|
{#if !invalid && !warn && !isFluid && !inline && helperText}
|
||||||
<div
|
<div
|
||||||
class:bx--form__helper-text="{true}"
|
class:bx--form__helper-text="{true}"
|
||||||
class:bx--form__helper-text--disabled="{disabled}"
|
class:bx--form__helper-text--disabled="{disabled}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue