DEV Community

Discussion on: Building a Reaction Component

 
madsstoumann profile image
Mads Stoumann

It's a bit tricky! You have the “total amount of likes” in the value, but want the label to announce “React with ...”! Interesting about the content-attribute, didn't know that – I always love it, when something is or will be solvable without JavaScript (I have nothing against JavaScript, but only use it when necessary)

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Yup, that is one of the "soft skills" of accessibility, label names and alt text is as much art as science.

My gut reaction is:

"React with a unicorn to this article? 75 others have given it a unicorn".

That way when you do check your checkbox that makes sense and at the same time you don't have to worry about incrementing the number as it still makes sense.

It would be one of those things I ponder as I work and come up with better phrasing, but the key to any answer would be "other people's reactions" as it eliminates the need to increment and report back.

Glad I managed to teach you something as it has been seeming like a one way street lately (you teaching me!) 😋🤣🤣

Thread Thread
 
madsstoumann profile image
Mads Stoumann

"React with a unicorn to this article? 75 others have given it a unicorn".

This is brilliant, precise and clear!

I’m always learning from your articles as well! dev.to has great content, when you ignore the Top 10 and listicles 😁

Thread Thread
 
link2twenty profile image
Andrew Bone

I'm gonna do a "top 10 @inhuofficial posts" post \s

Thread Thread
 
grahamthedev profile image
GrahamTheDev • Edited

Oh you do like to make me love and hate your comments at the same time lately...glad you get me 😜🤣

Anyway if you actually liked and read my posts you would know it has to be a prime number so it should be 11 at least! 😂🙈 go reread my guide to listicles as punishment for causing me pain again!