WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 3 months ago

Last modified 3 months ago

#32255 closed defect (bug) (fixed)

List Table: media wp-list-table lacks table header content for column-icon

Reported by: rianrietveld Owned by: afercia
Milestone: 4.3 Priority: normal
Severity: normal Version: 4.1
Component: Administration Keywords: has-patch
Focuses: ui, accessibility Cc:

Description

In wp-admin/upload.php wp-list-table the <th> for the image/file (column-icon) has no content:

http://www.rianrietveld.com/wp-content/uploads/2015/05/media-edit.png

<tr>
<th scope="col" id="cb" class="manage-column column-cb check-column" style="">
  <label class="screen-reader-text" for="cb-select-all-1">Select All</label>
  <input id="cb-select-all-1" type="checkbox">
</th>
<th scope="col" id="icon" class="manage-column column-icon" style=""></th>
<th scope="col" id="title" class="manage-column column-title sortable desc" style="">
  <a href=".../wp-admin/upload.php?orderby=title&amp;order=asc">
    <span>File</span><span class="sorting-indicator"></span>
  </a>
</th>

etc ...

Suggestions:

  • Add as content for the column-icon: "File"
  • Change the content for column-title into: "Title". This would be consistent with the other list tables in the admin

Attachments (1)

32255.diff (759 bytes) - added by pareshradadiya 4 months ago.

Download all attachments as: .zip

Change History (15)

comment:1 @slackbot4 months ago

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

@pareshradadiya4 months ago

comment:2 @pareshradadiya4 months ago

  • Keywords has-patch added

comment:3 @joedolson4 months ago

I think this is a good solution.

comment:4 @joedolson4 months ago

  • Milestone changed from Awaiting Review to 4.3
  • Owner set to afercia
  • Status changed from new to assigned

comment:5 @slackbot4 months ago

This ticket was mentioned in Slack in #core by joedolson. View the logs.

comment:6 @joedolson4 months ago

  • Keywords commit added

comment:7 follow-up: @obenland4 months ago

  • Keywords commit removed

I'm pretty sure the lack of heading stems from the variety of content of that column. For images it shows a preview, and "File" would make sense because you can see the content of the file. For everything else it uses icons to represent the file, and "File" would probably not really fit anymore.

Does the lack of a title present an actual problem somewhere or is this more of a cosmetic change?

comment:8 in reply to: ↑ 7 @afercia4 months ago

Replying to obenland:

Does the lack of a title present an actual problem somewhere or is this more of a cosmetic change?

The problem here is it's a TH but there's no text to be read as column header. We should add some text or, maybe, this shouldn't be a TH but just a TD. By the way, this ticket should be considered together with #32254 if we end up hiding the linked thumbnails/icons from assistive technologies, maybe there's no point in adding the missing header text.

comment:9 @slackbot4 months ago

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

comment:10 @afercia4 months ago

Screenshot before and after applying the patch:

https://cldup.com/VOTzP0QGCo.png

Maybe we could hide the header text with screen-reader-text in order to avoid a visual change and related discussions and maybe use something better than "File" as text. Should be something that covers also the cases of media being Audio, Video, documents, and any allowed media type.

Side note: changing the current "File" header text in "Title" would also encourage users to provide an actual Title for all media, with benefits for the alt-caption-title fallback see related #18984

comment:12 @afercia4 months ago

Related: #29993 maybe the thumbnail column will be removed.

comment:13 @helen3 months ago

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

In 32687:

Media: move the thumbnail into the title column in list view.

This gives us more space for the title and row actions, and will make a responsive list table enhancement significantly easier.

props bradt for the initial patch.
fixes #29993 and #32255. see #32509 and #32395.

comment:14 @slackbot3 months ago

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

Note: See TracTickets for help on using tickets.