diff --git a/packages/documentation/src/stories/components/forms/input/input.stories.ts b/packages/documentation/src/stories/components/forms/input/input.stories.ts index 0fe48ec586..0f3c87bd43 100644 --- a/packages/documentation/src/stories/components/forms/input/input.stories.ts +++ b/packages/documentation/src/stories/components/forms/input/input.stories.ts @@ -99,7 +99,11 @@ const meta: Meta = { }, size: { name: 'Size', - description: 'Sets the size of the component\'s appearance.', + description: "Sets the size of the component's appearance.", + if: { + arg: 'floatingLabel', + truthy: false, + }, control: { type: 'select', labels: { @@ -187,8 +191,8 @@ function render(args: Args, context: StoryContext) { const useAriaLabel = !args.floatingLabel && args.hiddenLabel; const label: TemplateResult | null = !useAriaLabel ? html` - - ` + + ` : null; if (args.floatingLabel && !args.placeholder) { @@ -198,18 +202,18 @@ function render(args: Args, context: StoryContext) { const contextual: (TemplateResult | null)[] = [ args.validation === 'is-valid' ? html` -

Ggranda sukceso!

- ` +

Ggranda sukceso!

+ ` : null, args.validation === 'is-invalid' ? html` -

Eraro okazis!

- ` +

Eraro okazis!

+ ` : null, args.hint !== '' ? html` -
${args.hint}
- ` +
${args.hint}
+ ` : null, ];