WordPress / wporg-mu-plugins

Development of the Global Header and other mu-plugins used on WordPress.org.
63 stars 30 forks source link

Add active state to subnav menu item when triggered with mouse click. #598

Open StevenDufresne opened 7 months ago

StevenDufresne commented 7 months ago

Originally reported in https://meta.trac.wordpress.org/ticket/7491, by pitamdey.

Add an indicator for the anchor tag when a dropdown menu is active and triggered by a mouse click.

Screenshot

Screenshot 2024-04-08 at 11 37 22 AM
ryelle commented 7 months ago

Just noting, that screenshot is the focus state, I'm guessing it's meant as a suggestion. When you tab away, you still loose that "selected" state.

Screenshot 2024-04-08 at 10 18 09 AM

I don't think this is an accessibility requirement, so it could probably be fairly minor. We definitely don't want anything that a user could confuse with the focus state.