generaxion / axio-starter

Superior WordPress starter theme with modern build tools by Generaxion (previously Aucor Starter). 250+ hours of development over 6 years to make the greatest starting point for WordPress site.
https://axio.generax.io
GNU General Public License v2.0
166 stars 25 forks source link

Submenu closes if parent menu is clicked. #41

Closed kauaicreative closed 3 years ago

kauaicreative commented 3 years ago

Example: https://starter.aucor.fi/

On Windows Chrome the submenu will close prematurely

  1. mouse over "examples"
  2. click "examples" (which some visitors will attempt)
  3. mouse over submenu items
TeemuSuoranta commented 3 years ago

Thanks for reporting! Seems to be so. There is kind of two proper states of submenu being open:

  1. Opened with hover => has exit timer so cursor can briefly be out of element
  2. Opened with click => doesn't seem to add exit timer correctly

For most part this is not an issue as users who click, do not hover (touch devices, keyboard, screen readers) but there is an issue when empty links (href="#") is used like here. We should also tweak the markup if there is empty links as for accessability it is not great now as empty link will operate like "button" instead of link so there should be some meta for that or switch to button element.

I'll tag this with both bug and enhancement and close when solution is implemented.

TeemuSuoranta commented 3 years ago

This is now fixed in 6.0.