I was implementing a feature that display a tooltip by hovering a text. Thinking about accessibility, I am wondering which element or role I should address.
Eg:
<div onMouseEnter={triggerEvent}>This trigger a hover event</div> // Lack of role (button?)
<button onMouseEnter={triggerEvent}>This trigger a hover event</button> // No onclick event, so is it really the element we need ?
In my opinion, it’s not a button nor a role ‘button’. Any suggestion?