Commit graph

19 commits

Author SHA1 Message Date
Luke Bennett
32c5fa99fe
Fix sidebar flyout navigation
Show flyout nav for active item when collapsed.
2019-06-13 00:18:46 +01:00
Luke Bennett
0705acd66c
Fix flyout nav on small viewports
Decouples sidebar collapsed style from
behavior.
2019-05-15 15:41:00 +01:00
Fernando Arias
e0725fa436 Dynamic vuln graph dimensions
* Fix up graph resize logic if navbar is collapsed

Add snapshot
2019-04-05 05:19:23 +00:00
Ezekiel Kigbo
ed29dd5293
Align nav-sidebar with design.gitlab.com docs
Updated nav-sidebar to reflect the documented
behaviour from the design.gitlab.com docs:
https://design.gitlab.com/regions/navigation#contextual-navigation

Updated rspec tests to reflect the expected behaviour
2019-03-05 00:58:23 +11:00
Ezekiel Kigbo
e4f9c3f63a
Fix collapsing behaviour at 1200px 2019-03-05 00:58:23 +11:00
Ezekiel Kigbo
3e42a0c175
Removed force toggle .nav-sidebar on any click event
Added note describing expected behaviour
2019-03-05 00:58:22 +11:00
Ezekiel Kigbo
d53005ef16
Added test for interacting with the nav-sidebar on smaller screens
Use mobile collapsing behaviour at width 1200px
2019-03-05 00:58:22 +11:00
Ezekiel Kigbo
9ef058bee2
Updated nav-sidebar to collapse on load
Adds the collapsed mixin to the styling for .nav-sidebar
ensuring the nav-sidebar is collapsed on load via media
queries. Removes the need for an intermediate class to
collapse the sidebar on mobile viewports

Updated toggleCollapsedSidebar to check for desktop breakpoint
2019-03-05 00:58:22 +11:00
Ezekiel Kigbo
1622e86301
Added DESKTOP_BREAKPOINTS constant
Chore: ensure sidebar-expanded-mobile toggles

Revert: toggleCollapseSidebar should not be called on xs breakpoints
2019-03-05 00:58:22 +11:00
Ezekiel
fde3f619ba
Fixed navigation sidebar flashing open on page load
Adds the sidebar-collapsed-mobile class to the haml layouts
and sets media queries to display the sidebar collapsed by
default for sreen sizes greater than `sm` and less than `lg`
2019-03-05 00:58:21 +11:00
Paul Slaughter
9cb8ba63d8
Fix contextual_sidebar function binding 2019-01-15 16:26:29 -06:00
Tim Zallmann
8871dc9077 Optimization of setup of Main Nav Layout, Contextual Sidebar and Fly Out Nav 2019-01-15 12:35:16 +00:00
Winnie Hellmann
0bf740fa32 Replace === true with parseBoolean() 2018-11-27 09:18:48 +01:00
Mike Greiling
dfb0824346 Prettify all the things (part 7) 2018-10-24 19:17:03 +00:00
Mike Greiling
f248be7257
require jQuery to be explicitly imported 2018-03-09 15:18:09 -06:00
Phil Hughes
eb499b60ba Merge branch 'new-nav-tech-debt' into 'master'
Remove page-with-new-nav class

See merge request gitlab-org/gitlab-ce!15819
2017-12-13 09:48:34 +00:00
Annabel Dunstone Gray
77c254f225
Rename page-with-sidebar to layout-page 2017-12-08 14:19:01 -07:00
Annabel Dunstone Gray
37f0ee0466
Animate contextual sidebar; change class names for easier readability 2017-12-07 10:16:38 -07:00
Annabel Dunstone Gray
58af2647dc
Rename new_sidebar in JS 2017-10-20 16:14:55 -07:00
Renamed from app/assets/javascripts/new_sidebar.js (Browse further)