Skip to content

Commit

Permalink
docs(label-value): fix demo [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiFTy17 committed Oct 14, 2024
1 parent 2c89759 commit d715bbb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/stories/components/label-value/LabelValue.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
<forge-label-value .empty=${args.empty} .ellipsis=${args.ellipsis} .inline=${args.inline} style=${style}>
<label slot="label">Label</label>
Expand Down

0 comments on commit d715bbb

Please sign in to comment.