Lea Verou 12. 8. 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

komentářů

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet