Nested item gets focused in menu bar after clicking category button
📝 Provide detailed reproduction steps (if any)
https://github.com/user-attachments/assets/1f461809-3fbc-4fd6-bdab-5eade6a97a78
After clicking the "category" button like "Image", or "Text", the first item inside gets focused and stays focused. Earlier we decided to show focus only on keyboard interaction.
@scofalik It's not entirely a bug. From what I remember, it handles case when user press arrow down after clicking menu. Without such focus selection, it's kinda hard for the user to distinguish which menu item should be highlighted - parent menu item or nested menu item.
It might be the case, probably to be discussed then.
@scofalik Yep, it's not super intuitive, though. Probably needs adjustments. So it'll be better to keep this issue open.
We discussed this topic and we figured out the best solution would be no action upon clicking a menu category button, no focus movement, no outline change (unless it violates WCAG).
It shouldn't violate WCAG as a focus indicator is needed only for keyboard navigation.