Resonance Logo

Star Rating

An accessible star rating control with interactive and read-only variants, communicating both the selected value and the available range to screen readers through a radio-group pattern or equivalent text alternative.

Demo

The demo below includes both a read-only rating display and an interactive rating input. For the read-only variant, use a screen reader and navigate to it to hear how the score and total are announced without any visual dependency. For the interactive variant, Tab to it and use arrow keys to move through star options, then press Space or Enter to select a rating.

Interactive Star Rating

No rating selected

Read-Only Display

4.5 out of 5 stars

What to Observe

Anatomy

[Anatomy image placeholder — will be added when assets are available]

  1. Rating group label: A visible or accessible label that introduces the rating control (e.g., "Rate this product") and scopes its purpose.
  2. Star options (interactive): Individual radio inputs or equivalent controls, each labeled with the rating value it represents (e.g., "1 star", "2 stars").
  3. Selected state indicator: The visual and programmatic marker that identifies the currently chosen rating within the interactive variant.
  4. Read-only display: A text-based or ARIA-labeled element that communicates a pre-existing average rating score and total for display-only contexts.
  5. Review count (optional): A numeric or textual indication of how many reviews contributed to the displayed average rating.

Accessibility Behavior

Common Mistakes

Why This Matters

Star ratings appear on nearly every product page and review section, and they heavily influence purchase decisions. A screen reader user who encounters five unlabeled star graphics receives no useful product feedback at all. For interactive rating inputs — used on order confirmation pages, review forms, and feedback surveys — an inaccessible control means the user cannot complete a task that is available to everyone else. Whether read-only or interactive, accessible star ratings ensure that every user can access product reputation data and submit their own feedback equally.

Accessibility Validation

This component is validated against internal accessibility criteria aligned with WCAG standards, using our internally developed system, Resonance Specs.

To learn more, please contact us.

Code

Reference Implementation