I have one suggestion. For accessibility, it would be better if you use button instead of div for the container. A button gets focus for keyboard users and is announced by screen readers as something actionable. When there is no text inside, you can add an aria-label attribute.
Hi Murtuza,
I have one suggestion. For accessibility, it would be better if you use
button
instead ofdiv
for the container. A button gets focus for keyboard users and is announced by screen readers as something actionable. When there is no text inside, you can add an aria-label attribute.Something like this:
Thanks for mentioning that! I will take care of that.