Skip to content

Commit 84fb69c

Browse files
committed
chore: Use arbitrary property (#2054)
1 parent 324fe1d commit 84fb69c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/LabelWithTooltips.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<Tooltip
2121
type="auto"
2222
triggeredBy="#{tooltipId}"
23-
class={`max-w-[${tooltipWidth}px] ${TOOLTIP_CLASS_BASE}`}
23+
class={`[--tooltip-width:${tooltipWidth}px] max-w-[var(--tooltip-width)] ${TOOLTIP_CLASS_BASE}`}
2424
>
2525
{#if typeof tooltipContents === 'string'}
2626
{tooltipContents}

0 commit comments

Comments
 (0)