Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu sidebar bug #79

Closed
simshaun opened this issue Jun 19, 2014 · 6 comments · Fixed by #239
Closed

Menu sidebar bug #79

simshaun opened this issue Jun 19, 2014 · 6 comments · Fixed by #239
Labels

Comments

@simshaun
Copy link

  1. Reduce browser width until the menu sidebar may be opened.
  2. Open the menu sidebar.
  3. Expand browser width until the horizontal menu reappears.

An area of whitespace equal to the menu sidebar width remains visible in the header area.

menu-bug

@addyosmani
Copy link
Contributor

Useful to see what settings you're using in responsive mode. Will help with debugging this. We'll get it fixed.

@passy
Copy link
Collaborator

passy commented Jun 19, 2014

Couldn't reproduce this in the Chrome DevTools with emulation turned on, but I may have just been stupid.

@addyosmani
Copy link
Contributor

I can't repro in Firefox either:

screen shot 2014-06-19 at 21 38 32

Could you let us know what OS you're on?

@simshaun
Copy link
Author

Sorry for the lack of info.

Browsers tested:

  • Win/Firefox 30
  • Win/Chrome 35.0.1916.153 m
  • Ubuntu/Firefox 30

Exact steps I've taken to test:

  1. Clone the repo
  2. Run npm install in the CLI
  3. Run gulp serve in the CLI
  4. Shrink window until hamburger icon appears.
  5. Click hamburger icon to open menu pane.
  6. Enlarge window until horizontal menu re-appears. This is the state you see in the screenshot I posted.

Browser methods:

Firefox: Tools -> Web Developer -> Responsive Design View
Chrome: Devtools -> Esc -> Emulation -> Screen. Just moving the slider up and down

The culprit:

header.app-bar keeps the open class when the window is enlarged to the point that it is no longer needed.

Potential fixes:

  1. In the 1200px media query, negate the .app-bar.open, .app-bar.open ~ main transform
  2. Use JS to watch the window width and remove the open class. I don't like this solution since it requires the JS to be in sync with the CSS media query.
  3. Ignore the issue. Maybe it's not worth fixing. I think it will be encountered by end-users though.

@addyosmani
Copy link
Contributor

Thank you very much for the detailed report :) I do think this issue needs to be fixed. At the moment I'd need to test what side-effects we might incur if opting for 1. but will circle back if we find that it's a suitable solution. Cheers for the suggestions!

@addyosmani
Copy link
Contributor

Just confirming that this is still an issue in master:

addyosmani added a commit that referenced this issue Jul 3, 2014
In the 1200px media query, negate the `.app-bar.open, .app-bar.open ~
main transform` to remove the white area (~250px out) displayed. This
generally seems to be a FF only issue.
sindresorhus added a commit that referenced this issue Jul 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants