#35141 closed defect (bug) (fixed)
Remove title attributes: the Star Rating
Reported by: | afercia | Owned by: | afercia |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Administration | Keywords: | has-screenshots, has-patch, title-attribute |
Focuses: | ui, accessibility | Cc: |
Description
See related #24766 and all the following tickets about title attributes.
The Star Rating (wp_star_rating()
) outputs a rating visually rendered with "stars" and optionally the number of ratings.
Hovering the stars, a title attribute appears that repeats the same information already conveyed by text hidden with screen-reaer-text
. See screenshot:
I'd propose to simply remove the title attribute:
- sighted users can actually see the stars, no need for a title attribute
- the hidden text is already available for assistive tech users
A proper fix should also hide to assistive technologies the visible number of ratings (already included in the hidden text) using aria-hidden
.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Please notice the proposed patch also removes two trailing spaces in
/wp-admin/includes/template.php
(my editor does that automatically on saving).