DEV Community

Discussion on: Scalable "star rating" without JS (and no SVG or image for the star)

Collapse
 
qm3ster profile image
Mihail Malo

What did you mean when you said?:

  • No hacky CSS code.
Collapse
 
afif profile image
Temani Afif

You know that kind of CSS code where users add the inputs and then try to hide them out of the screen using position:absolute; and small sizes, etc.
Also all the manual CSS code written to cover all the cases where we are obliged to set very specific values to get the intended result which make the code not scalable and each time you need to update something you have to redo a lot of code.

This is what I call hacky and there is nothing of this in my code. My code scale easily, there is no hard-coded value, I am not trying to make the input out of sight, you don't need to touch the CSS code if you want to add more stars or to change the size, etc

Collapse
 
qm3ster profile image
Mihail Malo

Ah, so no dirty filth, basically.
Ok, that makes sense.