Skip to content

Sloth247/interactive-rating-component-fem

Repository files navigation

Frontend Mentor - Interactive rating component solution

This is a solution to the Interactive rating component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Select and submit a number rating
  • See the "Thank you" card state after submitting a rating

Screenshot

Links

My process

Built with

  • Remix
  • Semantic HTML5 markup
  • Sass/Scss
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

I've heard that handling requests on forms are easy on Remix, so I gave a go. I liked the feature I can get the data using useActionData and I could use it in states and errors. It is much easier than React that uses on Change handler and useState for the submitted data.

Regarding accessibility, I have learnt the use of aria-describedby for error message. I put it in radio input and id in the <p> tag of the error message. I still want to know the best practice when I have multiple inputs. Maybe, I should have set fieldset and put it on the tag.

Continued development

I should learn more on accessibility on form control. This was my first project using TypeScript, but there was not many places to use types, so I will practice more on other projects.

Useful resources

Author

About

Remix project with TypeScript. Feedback score will be sent via http request and complete messages are shown upon submission.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published