From 48cbd79ca886619872e2810972c98b38e5043d67 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Wed, 11 Oct 2017 12:56:44 -0400 Subject: [PATCH] fixes #443 --- client/components/Nav.jsx | 86 +++++++++++++++---- .../modules/IDE/components/PreviewFrame.jsx | 1 + client/styles/abstracts/_variables.scss | 9 +- client/styles/components/_nav.scss | 28 +++++- 4 files changed, 102 insertions(+), 22 deletions(-) diff --git a/client/components/Nav.jsx b/client/components/Nav.jsx index bad3b287..f19c6628 100644 --- a/client/components/Nav.jsx +++ b/client/components/Nav.jsx @@ -95,7 +95,7 @@ class Nav extends React.PureComponent { onFocus={this.clearHideTimeout} > File - +
  • @@ -110,6 +110,7 @@ class Nav extends React.PureComponent { } else if (this.props.warnIfUnsavedChanges()) { this.props.newProject(); } + this.setDropdown('none'); }} onFocus={this.handleFocus.bind(this, 'file')} onBlur={this.handleBlur} @@ -126,6 +127,7 @@ class Nav extends React.PureComponent { } else { this.props.showErrorModal('forceAuthentication'); } + this.setDropdown('none'); }} onFocus={this.handleFocus.bind(this, 'file')} onBlur={this.handleBlur} @@ -137,7 +139,10 @@ class Nav extends React.PureComponent { { this.props.project.id && this.props.user.authenticated &&
    • @@ -201,7 +214,10 @@ class Nav extends React.PureComponent {
      • @@ -257,7 +282,10 @@ class Nav extends React.PureComponent {
        • @@ -312,7 +349,12 @@ class Nav extends React.PureComponent {
        • -
        • @@ -323,6 +365,7 @@ class Nav extends React.PureComponent { rel="noopener noreferrer" onFocus={this.handleFocus.bind(this, 'help')} onBlur={this.handleBlur} + onClick={this.setDropdown.bind(this, 'none')} >Reference
        • @@ -330,6 +373,7 @@ class Nav extends React.PureComponent { to="/about" onFocus={this.handleFocus.bind(this, 'help')} onBlur={this.handleBlur} + onClick={this.setDropdown.bind(this, 'none')} > About @@ -362,7 +406,7 @@ class Nav extends React.PureComponent { > My Account - +
          • My Account @@ -373,6 +417,7 @@ class Nav extends React.PureComponent { to={`/${this.props.user.username}/sketches`} onFocus={this.handleFocus.bind(this, 'account')} onBlur={this.handleBlur} + onClick={this.setDropdown.bind(this, 'none')} > My sketches @@ -382,6 +427,7 @@ class Nav extends React.PureComponent { to={`/${this.props.user.username}/assets`} onFocus={this.handleFocus.bind(this, 'account')} onBlur={this.handleBlur} + onClick={this.setDropdown.bind(this, 'none')} > My assets @@ -391,13 +437,17 @@ class Nav extends React.PureComponent { to={`/${this.props.user.username}/account`} onFocus={this.handleFocus.bind(this, 'account')} onBlur={this.handleBlur} + onClick={this.setDropdown.bind(this, 'none')} > Settings