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

Tab through Divi Mega Menu closes on second column first sub-item #53

Open
ramseyba opened this issue Jul 28, 2021 · 6 comments
Open

Tab through Divi Mega Menu closes on second column first sub-item #53

ramseyba opened this issue Jul 28, 2021 · 6 comments

Comments

@ramseyba
Copy link

Tab through Divi Mega Menu, and it closes prematurely on the second column first sub-item.

If you need a link, can I send it privately?

Thanks!

Divi Accessibility - keyboard tab divi mega menu premature close

@soleto
Copy link

soleto commented Oct 21, 2021

Lasts versions of Divi hide the submenu when you change the focus to another parent level that has no other submenu inside using tab key navigation.

I´m triying this but it doesn´t work. Mi knoweledge of CSS is poor. :)

.menu-item li > ul.sub-menu { display: none; } .menu-item li:hover > ul.sub-menu { display: block; } .menu-item li a:focus + ul.sub-menu { display: block; }

@soleto
Copy link

soleto commented Oct 21, 2021

I solve it with this code:

li:focus-within > ul
{
opacity: 1;
visibility: visible;
}
.menu-item li a:focus { display: block; }

@soleto
Copy link

soleto commented Oct 22, 2021

Have you solved it?

@ceswebmaster
Copy link

Just want to make sure I comment on this as it's still an issue that pops up but Soleto's CSS tweak solves this and just saved me a bunch of time

@soleto
Copy link

soleto commented Mar 22, 2022

Nice to hear that @ceswebmaster

@christinagwira
Copy link

li:focus-within > ul
{
opacity: 1;
visibility: visible;
}
.menu-item li a:focus { display: block; }

This code works perfectly for my other issue #87
I'm now able to tab through using the Menu Module in the Theme Builder. Thank you!

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

No branches or pull requests

4 participants