@Bayoumi-dev
Posted
Hey Segni,
I suggest you use <button className={styles.dice}> instead of <div className={styles.dice}>
... Buttons
are used for actions, and when using the image img
inside the <button>
without text, Set the attribute aria-label
to describe the button, to add more semantic to your project.
<button
onClick={() => {
//...
}}
className={styles.dice}
ariaLabel="Advice Generator">
<img
src='/images/icon-dice.svg'
height={24}
width={24}
alt='dice'>
</img>
</button>
Hope this is helpful to you... Keep coding👍
Marked as helpful
@SegniAdebaGodsSon
Posted
@Bayoumi-dev Thanks 🙏🏻, great catch, I'll update it.
@Bayoumi-dev
Posted
@SegniAdebaGodsSon You are welcome😊