@DavidMorgade
Posted
Buenas Martinsito, buen trabajo terminando el challenge! te quedo muy bueno el rating card!
Solo una cosa que creo que se te a pasado añadir, cuando hacer click en uno de tus rate--button
debería de pintarlo como de color naranja para que el usuario sepa que botón selecciono una vez que quite el cursor, esto lo puedes hacer facilmente en tu forEach()
, más o menos debería ser algo así:
sectionRate.forEach((element, i) => {
element.addEventListener('click', () => {
saveSelection = i+1;
element.style.backgroundColor = 'orange';
})
});
Y listo con eso ya conseguirias el efecto.
Espero que mi feedback te sea de ayuda para tus proximos proyectos, sigue así!
Marked as helpful