Radix replaces the CTools modal with the Bootstrap modal. The markup that it uses changes the button text from "Close Window" to "x" which is (1) not accessible and (2) breaks the Panopoly test suite which is using that text to find the button.

Originally from this Panopoly issue #2574369: Tests fail with Radix

CommentFileSizeAuthor
#3 radix-close-window-2576897-3.patch850 bytesdsnopek

Comments

dsnopek created an issue. See original summary.

dsnopek’s picture

Issue summary: View changes
dsnopek’s picture

Status: Active » Needs review
StatusFileSize
new850 bytes

Here's the first pass at this!

jwilson3’s picture

You're adding ARIA landmarks, which means you're making an attempt at assistive technology support. I think to improve that support, you might also wrap the &times; in a <span aria-hidden="true">.

This is a similar pattern being used in Drupal 8 core on the new accesible pagers, where the number "1" is hidden from screen readers with an <span aria-hidden="true"> and then an additional <span class="visually-hidden">Go to Page 1</span> is what is read. Sighted users only see "1".

jwilson3’s picture

Status: Needs review » Needs work
cboyden’s picture

@jwilson3 Thanks for the reference to the new Drupal 8 approach. The pattern could be different here, since we're talking about form elements instead of pagers, which are implemented as links.

The expected behavior of the aria-label property is that it overrides the text/visible label of the form element it's applied to. Screenreader support for aria-label is good, so aria-hidden and element-invisible should not be needed. Speech input lags behind on ARIA support, but to the best of my knowledge the latest releases of major speech input products do support aria-label for buttons.

cboyden’s picture

Of course for the automated test suite to work, there has to be some text for it to find, and aria-label won't work for that case.

cboyden’s picture

Status: Needs work » Reviewed & tested by the community

We just tested this patch with Jaws, NVDA, and Dragon. It's working as expected with all three.

dsnopek’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, @cboyden! Committed :-)

  • dsnopek committed d9a5e79 on 7.x-3.x
    Issue #2576897 by dsnopek, cboyden: Replacement for CTools modal changes...

Status: Fixed » Closed (fixed)

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