Problem/Motivation

I really like this module! It's awesome how it can set up a menu as the disclosure or menubar ARIA pattern without the user having to write javascript. However, I've noticed it's incompatible with the contributed Menu Block module. It would be great to be able to use these together.

Steps to reproduce

Line 338 of accessible_menu.module only tests for a base plugin id strictly equal to 'system_menu_block'.
Menu Block hides system menu blocks and replaces them with a base plugin id of 'menu_block'.

Proposed resolution

It seems like all that's needed to make Accessible Menu compatible with Menu Block is a small addition to the if statement on line 338 of accessible_menu.module, but I'm not 100% sure.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kwiseman created an issue. See original summary.

nickdjm’s picture

Hey @kwiseman, thanks for the MR!

I'm not familiar with that module, however from a quick look through it's source code I think you're correct in thinking this is the only change needed.

I'd like to confirm that's the case before merging this in, but it looks promising!

Are you able to confirm everything works as expected with this change?

kwiseman’s picture

Yes it works. I tried it (that exact change) on a development version of a real website and Accessible Menu's javascript is still able to set up the roles and keyboard interactivity.

kwiseman’s picture

Status: Active » Needs review
nickdjm’s picture

Status: Needs review » Fixed

Awesome, merged.

Thanks!

nickdjm’s picture

Version: 1.x-dev » 1.0.0
Status: Fixed » Closed (fixed)