Making WordPress.org

Opened 2 years ago

Last modified 6 weeks ago

#6319 new defect (bug)

Trac: attachment links need text

Reported by: sabernhardt's profile sabernhardt Owned by:
Milestone: Priority: normal
Component: Trac Keywords: has-patch
Cc:

Description

Accessibility issues:

  1. The Raw Attachment download links do not have any text, and they could include the file name to make the text unique.
  2. The image previews do not have alternative text.

Change History (2)

This ticket was mentioned in PR #72 on WordPress/wordpress.org by sabernhardt.


2 years ago
#1

  • Keywords has-patch added

This can be improved, but it's a start.

  • "Raw attachment" and the file name are added as invisible text for download links, at least within the comments area. (I kept the "Download" title attribute, though it does not help everyone.)
  • The filename is inside its own container for use in the preview links.
  • The preview images could use the filename as alternative text in all cases, but I favored the user-added description—when available—in this patch.

https://meta.trac.wordpress.org/ticket/6319

This ticket was mentioned in PR #225 on WordPress/wordpress.org by @sabernhardt.


6 weeks ago
#2

  • "Download" and the file name are added as visually hidden text for raw attachment download links, at least within the comments area. (The "Download" title attribute is removed.)
  • The filename is inside its own container for use in the preview links. (The class could be applied to the first link instead, if preferable.)
  • The preview images could use the filename as alternative text in all cases, but I favored the user-added description—when available—in this patch.

https://meta.trac.wordpress.org/ticket/6319

Note: See TracTickets for help on using tickets.