Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
6
Comments
1
César G. Díaz.
@Adriangln11

All comments

  • Leonardo Rodrigues Gomes•160
    @gomes-leonardo
    Submitted over 2 years ago

    interactive-rating-component-main

    1
    César G. Díaz.•90
    @Adriangln11
    Posted over 2 years ago

    Hey, Hi. First of all sorry about my grammar and merry christmas too.!!

    1.- About the first issue, you can change the tag div for button on every rate number, and use the pseudoclase :focus to keep the properties on the element selected.

    2.- For the second issue you can add a property value on every rate button, with an event listener capture the value of the button selected on a variable initialized already like undefined. Also, on the listener on submit button validate if that variable is still undefined, if its undefined it means any button has been clicked, so you could show like a modal or something, otherway continue with the code normaly.

    I hope has been helpfull. Happy Coding!!

    Marked as helpful

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub