Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: star rating #919

Open
craigcook opened this issue Feb 7, 2024 · 1 comment
Open

Component: star rating #919

craigcook opened this issue Feb 7, 2024 · 1 comment

Comments

@craigcook
Copy link
Member

We should consider making a component for displaying an aggregate product rating from one to five stars, as well as allowing users to click and register their own rating. These likely need to be separate components: one for display-only and another for user rating.

For display, we could optionally show the total number of reviews alongside the stars, to indicate the basis for that aggregate score (for displaying aggregate scores we probably need to support half-stars but could force users to choose 1-5).

An expanded component might also include a breakdown chart showing how many people rated at each point.

Examples from addons.mozilla.org:
image
image

Examples from Amazon:
image
image

The most immediate use case for this component is addons.mozilla.org but it's a common enough pattern on the web we should considering making it widely available in Protocol.

@reemhamz
Copy link
Contributor

This would be a good component to get Jessica's opinion on for the next Protocol meeting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants