Page MenuHomePhabricator

Collapsible navigation toggle should be a link
Closed, ResolvedPublic

Description

patch for displaying the collapsible nav items as links

This bug is mentioned in the accessibility report carried out by the swiss foundation "Access for all" (see paragraph 1.3.2.1).
http://www.thirdageonline.eu/project-tao-2/software-development/mediawiki-accessibility-enhancements/

The navigation items that collapse subitems are not displayed as links, which makes it impossible for users of screen readers to understand that these actually are links.

I propose the attached patch to fix this one. The patch adds h5-tags to the collapsible items and extends its CSS definitions to still look the same.


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz34754

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:17 AM
bzimport set Reference to bz34754.

Sorry, the patch adds link tags to the collapsible items, h5 tags are already there.

This would seem to make the portal section titles links even if they are not collapsible...? Should this only be done in JS when the collapsible links are being set up, maybe?

or we can just add role's of course.

patch for displaying the collapsible nav items as links

I took Brion's comment into consideration. The navigation elements' content is changed during the javascript methods that add the collapsible css class, so collapsible/expandable headings become links "on demand".

Attached:

Yes, links missing the href attribute are not recognized by screen readers.