Lea Verou 8/12/2022

On ratings and meters

Read Original

This technical article discusses the challenges of using the HTML <meter> element to create a star rating widget. It explores three different web component implementation approaches, detailing the pros and cons of extending <meter>, using it in Shadow DOM, or creating a custom component with ARIA roles. The author also addresses the dilemma of making ratings editable and shares their final solution involving two separate components.

On ratings and meters

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
ServiceNow and Microsoft Copilot
Marius Sandbu 1 votes
2
The Learning Loop and LLMs
Martin Fowler 1 votes