This is very similar to #2283719: Duplicate links for text and icons in Panels IPE which addressed the fact that selecting a pane to add in the Panels IPE had a two separate link on the icon and the text, rather than a single link that wrapped both the icon and the text for that pane.

However, this issue isn't about selecting the pane, but selecting the layout in the Panels IPE!

This creates problems for accessibility, where keyboard users (or users of accessible devices that emulate the keyboard) have to TAB twice for each layout (which will be double confusing for first time users, as they won't immediately know that both links are equivalent).

Like with #2283719, we should have a single link that wraps both the icon and the text!

Comments

dsnopek created an issue. See original summary.

dsnopek’s picture

Status: Active » Needs review
StatusFileSize
new1.89 KB

Here's a patch that works in my testing

dsnopek’s picture

StatusFileSize
new2.04 KB
new696 bytes

@cboyden found a bug in this! It was a my stupid mistake. Here's a new patch to fix!

cboyden’s picture

Status: Needs review » Reviewed & tested by the community

We've been using this patch, it's working as expected.

  • joelpittet committed d92f1a3 on 7.x-3.x authored by dsnopek
    Issue #2883982 by dsnopek, cboyden: Duplicate links for layout text and...
joelpittet’s picture

Status: Reviewed & tested by the community » Fixed

Thank you both for this fix, divs aren't allowed in a tags :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.