Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#29455 closed defect (bug) (fixed)

Plugin Info Modal Close Button Does Not Announce for Screen Readers

Reported by: davidakennedy's profile davidakennedy Owned by: johnbillion's profile johnbillion
Milestone: 4.1 Priority: normal
Severity: normal Version: 4.0
Component: Plugins Keywords: has-patch commit
Focuses: accessibility Cc:


I was testing RC 1 and this slipped by in earlier testing of the plugin area.

The plugin info modal close button does not announce for screen readers.

This is the link with an id of TB_closeWindowButton.

  • The link uses only icon fonts inside the , but icon fonts are not announced by screen readers.
  • The title attribute may be intended for screen readers, but it's not announced by default by screen readers either, and it's really only useful for users with a mouse. See this post for more info on the title attribute:
  • When a screen reader announces these links, it says: "Link", which isn't descriptive and doesn't tell the user what the link does or where it goes.

Suggested fix:

The text "Close" can be added with a class of screen-reader-text.

  • Links should always have link text.
  • The screen-reader-text would be hidden off-screen, maintaining the design of the close link.

This would have it announce in screen readers. And be an easy fix. :)

Attachments (2)

29455.patch (2.9 KB) - added by SergeyBiryukov 10 years ago.
29455.2.patch (5.2 KB) - added by SergeyBiryukov 10 years ago.

Download all attachments as: .zip

Change History (12)

#1 @SergeyBiryukov
10 years ago

  • Keywords has-patch added

29455.patch removes the title attribute in favor of .screen-reader-text.

29455.2.patch also makes the markup more readable, if we want to do that.

#2 @SergeyBiryukov
10 years ago

Thickbox can also be used on front-end, where .screen-reader-text may not be available. We should make sure not to break anything.

This ticket was mentioned in IRC in #wordpress-ui by RianRietveld. View the logs.

10 years ago

#4 @arush
10 years ago

Tested 29455.2 with Jaws 14, Jaws 15 and IE 10 and 11 and the non-displaying close button shows and activates as it should.

#5 @helen
10 years ago

Is this problem new to 4.0?

#6 @helen
10 years ago

  • Keywords reporter-feedback added

#7 @arush
10 years ago

Yes this is new to 4.0.

#8 @adamsilverstein
10 years ago

  • Keywords commit added; reporter-feedback removed

#9 @johnbillion
10 years ago

  • Milestone changed from Awaiting Review to 4.1

#10 @johnbillion
10 years ago

  • Owner set to johnbillion
  • Resolution set to fixed
  • Status changed from new to closed

In 30376:

Improve Thickbox's close button so it can be announced by screen readers.

Fixes #29455
Props SergeyBiryukov

Note: See TracTickets for help on using tickets.