From 4c095130d8b32188aaeb84df9f2bbdb42fe41880 Mon Sep 17 00:00:00 2001 From: emyarod Date: Tue, 13 Sep 2022 12:08:26 -0500 Subject: [PATCH] docs(input): show password visibility knob only for password input --- src/components/input/stories/helpers.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/input/stories/helpers.ts b/src/components/input/stories/helpers.ts index 6c2d97c7f..dcdd65b6f 100644 --- a/src/components/input/stories/helpers.ts +++ b/src/components/input/stories/helpers.ts @@ -39,9 +39,7 @@ const createProps = ({ boolean, textNonEmpty, select }) => { invalid: boolean('Invalid (invalid)', false), onInput: action('input'), showPasswordVisibilityToggle: - type === INPUT_TYPE.TEXT || type === INPUT_TYPE.PASSWORD - ? boolean('Show password visibility toggle (show-password-visibility-toggle)', false) - : null, + type === INPUT_TYPE.PASSWORD ? boolean('Show password visibility toggle (show-password-visibility-toggle)', false) : null, size: select('Input size (size)', sizes, INPUT_SIZE.REGULAR), type, };