Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#38318 closed defect (bug) (fixed)

Tags meta box: add a `button` ARIA role to the tag cloud links

Reported by: afercia's profile afercia Owned by: afercia's profile afercia
Milestone: 4.7 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-screenshots has-patch
Focuses: accessibility Cc:

Description

See related #27555 and #26504.

For better accessibility, the tag cloud links in the Tags meta box should be reported to assistive technologies as buttons.

https://cldup.com/dFlg4jbxFV.png

They're not real links because activating them doesn't navigate to a new resource, instead it performs an action. The tag cloud is printed out in different contexts though so the ARIA role should be added just on the Tags meta box. I'd propose to check for the links href attribute, when it is set to #.

Attachments (1)

38318.diff (1.3 KB) - added by afercia 8 years ago.

Download all attachments as: .zip

Change History (3)

@afercia
8 years ago

#1 @afercia
8 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.7
  • Owner set to afercia
  • Status changed from new to assigned

First patch. Setting milestone to 4.7 as this would be a nice addition to the improvements proposed in #27555.

#2 @afercia
8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 38800:

Editor: Add a role button to the Tags meta box tag cloud links.

For better accessibility, the tag cloud links in the Tags meta box should be
reported to assistive technologies as buttons. They don't navigate to a new
resource, instead they perform an action.

Fixes #38318.

Note: See TracTickets for help on using tickets.