Merge branch 'fly-out-fix-hiding' into 'master'
Removed display styles when hiding the fly out navigation Closes #36224 See merge request !13431
This commit is contained in:
commit
7e82da8590
2 changed files with 3 additions and 2 deletions
|
@ -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');
|
||||
};
|
||||
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in a new issue