WordPress.org

Make WordPress Core

Opened 7 weeks ago

Last modified 4 weeks ago

#40138 new enhancement

Bundled themes: the tag cloud widget should output a list

Reported by: afercia Owned by:
Milestone: 4.8 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: tag-cloud
Focuses: ui, accessibility Cc:

Description

Splitting this out from #35566

Bundled themes should show best practices to theme authors. About the Tag Cloud widget, the latest patch on #35566 proposes some accessibility improvements, however it doesn't force the tags to be output as an unordered list to avoid the need to output some inline stylesheet.

A better option would be using the format argument to tweak the output on a case by case basis.

From a semantic perspective, the tags list is... well, a list. Setting the format argument to list would allow assistive technologies to announce the list as a list and the number of items in the list. Most of the users from the a11y testers group expressed a preference to have the number of items being announced, see the test results on #35566.

This would require some simple CSS adjustments, which is trivial to do in the Themes stylesheet.

Change History (5)

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.


7 weeks ago

#2 @afercia
7 weeks ago

See also ticket:35566#comment:32, it would be nice to have Twenty Seventeen filtering the Tag Cloud arguments instead of overriding the styles.

#3 @sami.keijonen
7 weeks ago

I'd say lets filter Tag Cloud arguments in the same way as in Twenty16. With small CSS tweaks we can make it look the same as now.

However this could break child themes styling for tag cloud. But I think it's more important to have more accessible tag cloud. Child themes can fix minor CSS.

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.


4 weeks ago

#5 @afercia
4 weeks ago

  • Keywords tag-cloud added
  • Milestone changed from Awaiting Review to 4.8
Note: See TracTickets for help on using tickets.