From d715bbbcdb0335193f43e123408e505e49f88009 Mon Sep 17 00:00:00 2001 From: "Nichols, Kieran" Date: Mon, 14 Oct 2024 08:09:36 -0400 Subject: [PATCH] docs(label-value): fix demo [skip ci] --- src/stories/components/label-value/LabelValue.stories.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/stories/components/label-value/LabelValue.stories.ts b/src/stories/components/label-value/LabelValue.stories.ts index b33459ccb..609f6cf59 100644 --- a/src/stories/components/label-value/LabelValue.stories.ts +++ b/src/stories/components/label-value/LabelValue.stories.ts @@ -15,12 +15,7 @@ const meta = { title: 'Components/Label Value', render: args => { const cssVarArgs = getCssVariableArgs(args); - const style = cssVarArgs ? styleMap(cssVarArgs) : nothing; - - if (args.ellipsis) { - style['width'] = '100px'; - } - + const style = styleMap({ ...cssVarArgs, width: args.ellipsis ? '100px' : null }); return html`