[wp-trac] [WordPress Trac] #36725: Star rating improve accessibility hiding empty elements

WordPress Trac noreply at wordpress.org
Sat Apr 30 14:26:00 UTC 2016


#36725: Star rating improve accessibility hiding empty elements
-------------------------------+-----------------------------
 Reporter:  afercia            |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  4.6
Component:  Administration     |    Version:
 Severity:  normal             |   Keywords:  has-screenshots
  Focuses:  ui, accessibility  |
-------------------------------+-----------------------------
 The star rating is correctly announced by screen readers thanks to some
 `screen-reader-text` used in the markup:

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

 By the way, some screen readers (see VoiceOver in the screenshot below)
 try to read out also the content of empty elements because there's some
 CSS generated content:

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

 Hiding the stars with `aria-hidden="true"` will make assistive
 technologies completely ignore these elements, improving the users
 experience.

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


More information about the wp-trac mailing list