Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

FLEXBOX

i_d_s_lβ€’ 270

@ilvdrskn

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I made this challenge frankly badly, at least there were problems with the background of the card. What can be tweaked to make it better?

Community feedback

Janselβ€’ 190

@JanselLopez

Posted

Hi πŸ˜ƒ, for the background of the card you can set the width of you container and manage it with media queries, something like:

.container {
  width: 500px;
}

@media (max-width: 510px) {
  .container {
    width: 90%;
  }
}

for read about media queries: w3schools/mediaqueries

Marked as helpful

1

@VCarames

Posted

Hey there! πŸ‘‹ Here are some suggestions to help improve your code:

  • The β€œicons/illustrations” in this component are purely decorative. ⚠️ Their alt tag should be left blank and have an aria-hidden=β€œtrue” to hide them from assistive technology.

More Info: πŸ“š

[MDN Aria-Hidden] (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-hidden#description)

  • Your ratings should be wrapped inside a form ⚠️ and have a visually hidden legend for accessibility and a fieldset to improve semantics.

More Info: πŸ“š

MDN: Legend Element

MDN: Field Set Element

If you have any questions or need further clarification, feel free to reach out to me.

Happy Coding! πŸŽ†πŸŽŠπŸͺ…

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord