From 3b6aa91ba9536db0dfb898e92727e6b72ebc486d Mon Sep 17 00:00:00 2001 From: Tommmaso Menga Date: Tue, 23 Jan 2024 11:00:35 +0100 Subject: [PATCH] chore(selection-panel): set chromatic min-height --- .../selection-panel/selection-panel.stories.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/selection-panel/selection-panel.stories.ts b/src/components/selection-panel/selection-panel.stories.ts index 05402416215..8104bd52f0a 100644 --- a/src/components/selection-panel/selection-panel.stories.ts +++ b/src/components/selection-panel/selection-panel.stories.ts @@ -3,7 +3,7 @@ import type { InputType } from '@storybook/types'; import type { Meta, StoryObj, ArgTypes, Args, Decorator } from '@storybook/web-components'; import isChromatic from 'chromatic'; import type { TemplateResult } from 'lit'; -import { html } from 'lit'; +import { html, nothing } from 'lit'; import type { StyleInfo } from 'lit/directives/style-map.js'; import { styleMap } from 'lit/directives/style-map.js'; @@ -152,7 +152,7 @@ const WithCheckboxGroupTemplate = ({ ${cardBadge()} @@ -184,7 +184,7 @@ const WithRadioButtonGroupTemplate = ({ orientation="vertical" horizontal-from="large" ?allow-empty-selection=${allowEmptySelection} - style="${isChromatic() ? 'min-height: 750px;' : ''}" + style="${isChromatic() ? 'min-height: 750px;' : nothing}" > ${cardBadge()} @@ -218,7 +218,7 @@ const TicketsOptionsExampleTemplate = ({ ${cardBadge()} @@ -350,7 +350,7 @@ const NestedCheckboxTemplate = ({ Main Option 1 @@ -383,7 +383,7 @@ const WithCheckboxesErrorMessageTemplate = ({ { const checkboxGroup = event.currentTarget as HTMLElement; const hasChecked = Array.from(checkboxGroup.querySelectorAll('sbb-checkbox')).some(