Lea Verou 12.08.2022

On ratings and meters

Przeczytaj oryginał

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

komentarzy

Brak komentarzy

Bądź pierwszy, który podzieli się swoimi myślami!

Rozszerzenie przeglądarki

Uzyskaj natychmiastowy dostęp do AllDevBlogs z przeglądarki

Tydzień

No top articles yet