Show variant name when hovering over color swatch on Product Page Dawn

Hi everyone,

I recently used some code to change the color variant pills on the product page to show color swatches instead of the color’s name and it works great.

I would like the name of the variant to show when I hover the mouse over the color swatch.

Could somebody tell me the piece of code I need to add?

Thank you

Hi @blcsite ,

You can use tooltip for it, refer link

Hope it helps!

Thanks but that is not it

Hi @blcsite ,

Please send me a demo of it. I will check it again