As I worked on enhancing the accessibility of a website, I couldn't help but notice that in the hover state, it's the <li>
element that is triggered, not the <a>
.
Is this something worth worrying about?
I'm inclined to believe that it would be more effective if the hover state was applied to the <a>
element since that is the target. However, strangely enough, W3 doesn't provide much guidance on this matter.
On the other hand, the W3 — Fly-out Menus tutorial suggests that it should actually be the <ul>
element that contains the hover state, which does seem logical from a design standpoint (considering padding and other factors).