Merge pull request #891 from 0xProject/bug/website/wiki-page-topbar

Make topbar zIndex 1
This commit is contained in:
Francesco Agosti 2018-07-24 10:22:18 -07:00 committed by GitHub
commit 14bb697924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,7 @@ const styles: Styles = {
position: 'relative',
top: 0,
paddingBottom: 1,
zIndex: 1,
},
bottomBar: {
boxShadow: 'rgba(0, 0, 0, 0.187647) 0px 1px 3px',
@ -481,6 +482,9 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
private _isViewingPortal(): boolean {
return _.includes(this.props.location.pathname, WebsitePaths.Portal);
}
private _isViewingDocs(): boolean {
return _.includes(this.props.location.pathname, WebsitePaths.Docs);
}
private _isViewingFAQ(): boolean {
return _.includes(this.props.location.pathname, WebsitePaths.FAQ);
}
@ -523,8 +527,9 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
private _shouldDisplayBottomBar(): boolean {
return (
this._isViewingWiki() ||
this._isViewing0xjsDocs() ||
this._isViewingFAQ() ||
this._isViewingDocs() ||
this._isViewing0xjsDocs() ||
this._isViewingSmartContractsDocs() ||
this._isViewingWeb3WrapperDocs() ||
this._isViewingSolCompilerDocs() ||