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

Second (non first) menu-item not selectable (Quark 1.0.2) #9

Open
awrog opened this issue Feb 22, 2018 · 16 comments
Open

Second (non first) menu-item not selectable (Quark 1.0.2) #9

awrog opened this issue Feb 22, 2018 · 16 comments

Comments

@awrog
Copy link

awrog commented Feb 22, 2018

Second (non first) menu-item not selectable (Quark 1.0.2)
Reproducible here: menu Seizoen, second item is not selectable (this is also the case for the sub-items). See also below
quark-menu

@duman
Copy link

duman commented Feb 25, 2018

It looks like not the 2nd but below the separator line. As your cursor goes below the line menu disappear.

@awrog
Copy link
Author

awrog commented Feb 26, 2018

Can it be fixed?

@rhukster
Copy link
Member

rhukster commented Mar 9, 2018

I'm not really able to replicate this, I can navigate just fine:

screen capture on 2018-03-09 at 16-35-46

@kiranetph
Copy link

It seems it is related to Grav v1.3.10
See : https://discourse.getgrav.org/t/quark-drop-down-menus-issue/5829

@djdakta
Copy link

djdakta commented Mar 10, 2018

Hi,
It's indeed related to Grav v1.3.10.

@doansson
Copy link

Still happening with Grav v1.4

@awrog
Copy link
Author

awrog commented Mar 15, 2018

Updated GRAV (1.4.1) and Quark (1.0.2) to latest versions.
The problem still exists.
Tried Win 10 Pro (1920 x 1080) and Win 7 enterprise (1680 x 1050)
Tried Chrome (65 64-bit), FF (59 64-bit) and Edge (41)
You can try it here
Screencast: Chrome, FF and Edge
quark-menu

@rpowers
Copy link

rpowers commented Apr 4, 2018

I am having this issue as well with 1.4.2 and Safari, Chrome.

Update: adding this to my custom.css seems to fix the issue; not sure if there are downstream effects or not, but I haven't seen any yet.

nav:hover { z-index: 100; }

@awrog
Copy link
Author

awrog commented Apr 5, 2018

@rpowers This does the trick!
Thnx!

@duman
Copy link

duman commented Apr 5, 2018

What you do is when you're hovering navigation, setting it's Z index to 100. (Possibly above everything.)

Due to this while hovering the navigation, it'll be always on top. I see nothing wrong with it.

@ghost
Copy link

ghost commented Aug 1, 2018

When using maps generated by leaflet by a script the menus are behind the maps. A z-index set in the theme would be generally useful.

@pamtbaau
Copy link

Hovering the submenu works fine to me in Quark, however, I do have the same problem when using an inherited theme.

@Goutte
Copy link

Goutte commented Mar 19, 2019

To reproduce:

  1. inherit the quark theme
  2. create a template extending the base, say mypage.html.twig:
{% extends 'partials/base.html.twig' %}

{% block content %}
    {{ page.content|raw }}
{% endblock %}

On this page the menu will bug. If you extend modular instead, it works, that's perhaps why you don't see it?

Not 100% sure about these instructions, as I have mathjax, markdown-notices and diagrams plugins enabled, and they may be culprits as well.


Thanks @rpowers for the charming fix!

I've found it more resilient to set a z-index to the whole section#header, so that it will also prevent the bug to happen with the language-selector for example.

@pamtbaau
Copy link

pamtbaau commented Jul 28, 2020

@rhukster On the forum someone experienced this issue again. Did some research and can reproduce the issue.

Steps to reproduce:

  • Fresh Grav installation v1.6.26
  • Create the following folder structure:
    pages
    ├── 01.home
    │   └── default.md
    ├── 02.typography
    │   └── default.md
    └── 03.topmenu
        ├── 01.sub1
        │   └── default.md
        ├── 02.sub2
        │   ├── 01.subsub1
        │   │   └── default.md
        │   ├── 02.subsub2
        │   │   └── default.md
        │   └── default.md
        └── default.md
    
  • In quark.yaml set header-fixed: false
  • Result in browser
    disappear
  • In quark.yaml set header-fixed: true
  • Result in browser
    remain

@StevenBrons
Copy link

I have the same issue here; does not seem browser dependent.
Setting the "z-index" of #header is a possible fix.

StevenBrons added a commit to StevenBrons/grav-theme-quark that referenced this issue Aug 5, 2020
Makes dropdown menus behave as expected
@pamtbaau
Copy link

pamtbaau commented Aug 5, 2020

@StevenBrons, Yes, I know. It has been mentioned above. But I don't think the z-index is a possible fix, but rather a possible workaround... ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants