Add aria-hidden to stars#663
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the star rating dashicon markup to improve accessibility by marking decorative icons as hidden from assistive technologies.
Changes:
- Adds
aria-hidden="true"to the dashicons star<span>template used for rating display.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
So many different places these things are kept... :D |
|
This PR should resolve the original issue. WordPress/wporg-theme-directory#163 |

Partially fixes https://meta.trac.wordpress.org/ticket/8276 by adding
aria-hiddento the ratings star output.However, the container already has an
aria-label. This is run throughwp_kses_postat a few points, but I wouldn't have expected that to removearia-label, so I'm not sure why it's gone.In block contexts, this is rendered via
wporg/ratings-stars, but I have no idea where that is.