aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
diff options
context:
space:
mode:
Diffstat (limited to 'packages/react-shared')
-rw-r--r--packages/react-shared/src/components/link.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/react-shared/src/components/link.tsx b/packages/react-shared/src/components/link.tsx
index 7b22dc4fa..ee55cc642 100644
--- a/packages/react-shared/src/components/link.tsx
+++ b/packages/react-shared/src/components/link.tsx
@@ -80,13 +80,19 @@ export class Link extends React.Component<LinkProps, LinkState> {
);
case LinkType.ReactScroll:
return (
- <span ref={input => (this._outerReactScrollSpan = input)}>
+ <span
+ ref={input => (this._outerReactScrollSpan = input)}
+ onMouseOver={this.props.onMouseOver}
+ onMouseEnter={this.props.onMouseEnter}
+ onMouseLeave={this.props.onMouseLeave}
+ >
<ScrollLink
to={this.props.to}
offset={0}
hashSpy={true}
duration={constants.DOCS_SCROLL_DURATION_MS}
containerId={this.props.containerId}
+ className={this.props.className}
style={styleWithDefault}
>
<span onClick={this._onClickPropagateClickEventAroundScrollLink.bind(this)}>