BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
7e82da85
Commit
7e82da85
authored
Aug 10, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fly-out-fix-hiding' into 'master'
Removed display styles when hiding the fly out navigation Closes #36224 See merge request !13431
parents
b79a551c
dd3e7202
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
fly_out_nav.js
app/assets/javascripts/fly_out_nav.js
+2
-1
fly_out_nav_spec.js
spec/javascripts/fly_out_nav_spec.js
+1
-1
No files found.
app/assets/javascripts/fly_out_nav.js
View file @
7e82da85
...
...
@@ -49,7 +49,8 @@ export const hideSubLevelItems = (el) => {
el
.
classList
.
remove
(
'is-showing-fly-out'
);
el
.
classList
.
remove
(
'is-over'
);
subItems
.
style
.
display
=
'none'
;
subItems
.
style
.
display
=
''
;
subItems
.
style
.
transform
=
''
;
subItems
.
classList
.
remove
(
'is-above'
);
};
...
...
spec/javascripts/fly_out_nav_spec.js
View file @
7e82da85
...
...
@@ -59,7 +59,7 @@ describe('Fly out sidebar navigation', () => {
expect
(
el
.
querySelector
(
'.sidebar-sub-level-items'
).
style
.
display
,
).
toBe
(
'
none
'
);
).
toBe
(
''
);
});
it
(
'does not hude subitems on mobile'
,
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment