[wp-trac] [WordPress Trac] #35141: Remove title attributes: the Star Rating

WordPress Trac noreply at wordpress.org
Thu Dec 17 19:26:02 UTC 2015


#35141: Remove title attributes: the Star Rating
-------------------------------+-----------------------------
 Reporter:  afercia            |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  4.5
Component:  Administration     |    Version:  4.4
 Severity:  normal             |   Keywords:  has-screenshots
  Focuses:  ui, accessibility  |
-------------------------------+-----------------------------
 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:

 [[Image(https://cldup.com/K8b0AHPFFK.png)]]

 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`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35141>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list