Skip to content

Commit ae937e5

Browse files
committed
fix: Pass style property to anchor element when not active
1 parent b4b0333 commit ae937e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Link/Link.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<a
134134
href={calcHref}
135135
class={[cssClass, (isActive && activeState?.class) || undefined]}
136-
style={isActive ? styleString() : undefined}
136+
style={isActive ? styleString() : style}
137137
aria-current={isActive ? (activeState?.ariaCurrent ?? 'page') : undefined}
138138
onclick={handleClick}
139139
{...restProps}

0 commit comments

Comments
 (0)