aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-27 19:16:58 +0800
committerFabio Berger <me@fabioberger.com>2018-08-27 19:16:58 +0800
commit791eae24c0c38368eecf3be4b9c1f162a29ca065 (patch)
tree7426a86583a83ff28aaa6947ac8f2da24906da8b /packages/website
parente10561b4a5b06983ac8a3a2f0f923f7eeeaa9bb6 (diff)
downloaddexon-sol-tools-791eae24c0c38368eecf3be4b9c1f162a29ca065.tar
dexon-sol-tools-791eae24c0c38368eecf3be4b9c1f162a29ca065.tar.gz
dexon-sol-tools-791eae24c0c38368eecf3be4b9c1f162a29ca065.tar.bz2
dexon-sol-tools-791eae24c0c38368eecf3be4b9c1f162a29ca065.tar.lz
dexon-sol-tools-791eae24c0c38368eecf3be4b9c1f162a29ca065.tar.xz
dexon-sol-tools-791eae24c0c38368eecf3be4b9c1f162a29ca065.tar.zst
dexon-sol-tools-791eae24c0c38368eecf3be4b9c1f162a29ca065.zip
Add ability to specify styling to popover container
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/components/ui/drop_down.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/website/ts/components/ui/drop_down.tsx b/packages/website/ts/components/ui/drop_down.tsx
index 4d5caef08..1daaeb1c3 100644
--- a/packages/website/ts/components/ui/drop_down.tsx
+++ b/packages/website/ts/components/ui/drop_down.tsx
@@ -21,6 +21,7 @@ export interface DropDownProps {
zDepth?: number;
activateEvent?: DropdownMouseEvent;
closeEvent?: DropdownMouseEvent;
+ popoverStyle?: React.CSSProperties;
}
interface DropDownState {
@@ -34,6 +35,7 @@ export class DropDown extends React.Component<DropDownProps, DropDownState> {
zDepth: 1,
activateEvent: DropdownMouseEvent.Hover,
closeEvent: DropdownMouseEvent.Hover,
+ popoverStyle: {},
};
private _isHovering: boolean;
private _popoverCloseCheckIntervalId: number;
@@ -77,6 +79,7 @@ export class DropDown extends React.Component<DropDownProps, DropDownState> {
useLayerForClickAway={this.props.closeEvent === DropdownMouseEvent.Click}
animated={false}
zDepth={this.props.zDepth}
+ style={this.props.popoverStyle}
>
<div
onMouseEnter={this._onHover.bind(this)}