#35313 closed defect (bug) (fixed)
Remove title attributes: Posts, Pages, and CPTs screens
Reported by: | afercia | Owned by: | afercia |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Administration | Keywords: | has-patch, has-screenshots, commit, title-attribute |
Focuses: | ui, accessibility | Cc: |
Description
See related #24766 and all the following tickets about title attributes.
In edit.php
, the item title link and the action links have title attributes that mostly repeat the information already provided by the links.
Title attributes that say "this item" don't help so much sighted users since they can actually see what item these links refers to. On the other hand, for accessibility these links should provide more information and make sense even when read out of context.
I'd propose to simply remove all the title attributes and use aria-label
attributes as done for other similar screens (e.g. Plugins).
A special case in these screens is the Published date: in the "List View" there's an abbreviation with a title attribute that repeats the date and adds the time. In the "Excerpt View", the time is displayed in plain text next to the date. Pages don't have the "Excerpt View".
Worth reminding title attributes on not-focusable elements won't be announced by screen readers. Please also consider touch devices, tablet, smartphones, where title attributes are hardly useful.
If the published time is a relevant information, I'd say it should be displayed in plain text. Title attributes are the best way to hide content from users :)
By the way, I guess this would need some discussion so I'll open a separate ticket.
Attachments (3)
Change History (14)
#1
@
9 years ago
- Keywords has-patch has-screenshots added
- Owner set to afercia
- Status changed from new to assigned
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
9 years ago
#4
follow-up:
↓ 6
@
9 years ago
Is there a reason why the date display isn't consistent between both views? I mean, the discussion on #35050 on what it should be aside, shouldn't it at least be consistent? (Sorry, rabbit-hole, should probably be a separate ticket :))
Beyond that, it seems to work as expected in FireFox/NVDA and no other title attributes seem to remain.
I do have one more question about the code, but otherwise unrelated to the ticket, is there a reason you're using printf()
on line 880, but sprintf()
everywhere else?
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
9 years ago
#6
in reply to:
↑ 4
@
9 years ago
Replying to Cheffheid:
Is there a reason why the date display isn't consistent between both views? I mean, the discussion on #35050 on what it should be aside, shouldn't it at least be consistent? (Sorry, rabbit-hole, should probably be a separate ticket :))
Who knows :) I think it was done during the crazy horse redesign (WP 2.7), created a specific ticket see #35391.
#7
@
9 years ago
As done in #35136 the refreshed patch strips out changes to the Comments "bubble". Icon links need a way to clarify what they represent. By the way, this issue is related to all icon links used in the admin so it should probably go in a separate ticket.
First pass. Also, adds translator comments and splits long lines for better readability.