aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-05 18:51:52 +0800
committerFabio Berger <me@fabioberger.com>2018-10-05 18:51:52 +0800
commite7de4b953fe8aaefee9c043679b021a485dc6dee (patch)
treedbcbff5f8dd1ba2799e2a6a3f8fdd183abdf67f2 /packages/react-shared/src
parentd98de363ebe565a59dc0fc7700179b3a5259f987 (diff)
downloaddexon-0x-contracts-e7de4b953fe8aaefee9c043679b021a485dc6dee.tar.gz
dexon-0x-contracts-e7de4b953fe8aaefee9c043679b021a485dc6dee.tar.zst
dexon-0x-contracts-e7de4b953fe8aaefee9c043679b021a485dc6dee.zip
Apply props to all link variants when possible
Diffstat (limited to 'packages/react-shared/src')
-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)}>