#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:
<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&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)
Change History (15)
@pareshradadiya — 4 months ago
comment:2 @pareshradadiya — 4 months ago
- Keywords has-patch added
comment:3 @joedolson — 4 months ago
I think this is a good solution.
comment:4 @joedolson — 4 months ago
- Milestone changed from Awaiting Review to 4.3
- Owner set to afercia
- Status changed from new to assigned
comment:5 @slackbot — 4 months ago
This ticket was mentioned in Slack in #core by joedolson. View the logs.
comment:6 @joedolson — 4 months ago
- Keywords commit added
comment:7 follow-up: ↓ 8 @obenland — 4 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 @afercia — 4 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 @slackbot — 4 months ago
This ticket was mentioned in Slack in #accessibility by rianrietveld. View the logs.
comment:10 @afercia — 4 months ago
Screenshot before and after applying the patch:
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:11 @afercia — 4 months ago
Related: #32509
comment:12 @afercia — 4 months ago
Related: #29993 maybe the thumbnail column will be removed.
comment:13 @helen — 3 months ago
- Resolution set to fixed
- Status changed from assigned to closed
In 32687:
comment:14 @slackbot — 3 months ago
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
This ticket was mentioned in Slack in #accessibility by rianrietveld. View the logs.