it would be nice to implement keyboard accessibility so that the submenu's appear when using the tab key.

Comments

add1sun’s picture

Version: 6.x-1.3 » 6.x-2.x-dev
Issue tags: +Accessibility

I'd definitely welcome patches for this.

AaronCollier’s picture

Subscribing.

chrisbert91’s picture

Any word on this?

mpotter’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev

Moving this to 7.x because that's where the new features go. We can mark as backport needed later.

The current version *does* display the submenu when using the Tab key, but only when Javascript is enabled. When Javascript is disabled, I am unaware of *any* way to make the submenu appear with the Tab key.

However, in the site I am building, the requirement is that when Javascript is disabled, all submenus are shown automatically. I'm working on this with just a horizontal menu at this point, and I'm only working in the D7 version. But when I get it working I'll post a patch to improve accessibility for that case as a starting point for other work.

I think it's just a matter of setting some default css and then having javascript overwrite those styles as needed when javascript is enabled.

mpotter’s picture

Oh geez, no patch is needed for this! When using Superfish, you already get the .sf-js-enabled class added to the nice-menu ul when javascript is enabled. So it's already easy to create some css to show the entire menu when javascript is disabled. Here is the basic of what I use:

ul.nice-menu ul {
	visibility: visible;
	position: relative;
	top: 0;
}
ul.nice-menu.sf-js-enabled ul {
	visibility: hidden;
	position: absolute;
	top: 1.8em;
}
vordude’s picture

Mike- Any thoughts on adding this into the module itself?

astonvictor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks