unexpected hover state when accessing three-dot menu on small screens
📝 Provide detailed reproduction steps (if any)
- access ckeditor on a small screen where not all toolbar items are visible first (for example: https://ckeditor.com/ckeditor-5/demo/mobile-support/)
- click or tap the three-dot menu
- see the first element of the dropdown is highlighted / tooltip is visible
✔️ Expected result
no element is highlighted / in hover state
❌ Actual result
the first element of the dropdown is highlighted / in hover state
📃 Other details
- Browser: Brave, Firefox, Brave for Android
- OS: Linux, Android
- First affected CKEditor version: latest
- Installed CKEditor plugins: -
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
This is not a hover state, but focused state. And focus triggers a tooltip.
As far as I remember, these were accessibility requirements and good practices. Personally, I find the current behavior a bit "too much" and I think we'll discuss it once more whether there's a "softer" way to implement this, that would be less intrusive for mouse/touch users.
BTW, just to decompose the current behavior of CKEditor, some examples from other apps.
Tooltips displayed for focused elements in GitHub and Slack:
However, when entering a sub-menu, Slack for instance does not immediately focus the first option in the menu. Regardless of whether I use the mouse or Enter:
https://github.com/user-attachments/assets/51840b2b-0074-4102-9969-cf0b03e314e6
OTOH, Notion does exactly what CKEditor does. On Enter and click, the first option of the sub-menu gets focused:
https://github.com/user-attachments/assets/a359cb82-1a2b-4ef6-af48-613507fa2051
Personally, I think I prefer the Slack's behavior. Which would work better with sub-menus which have a first button with a label. But we'll need to involve our accessibility experts here to review it. I know that we have already put a lot of thought into the current behavior so there may be reasons for it.
For the reference, this is CKEditor's behavior:
https://github.com/user-attachments/assets/d9f30ed9-512d-4730-aa05-06745703ae95
Other notable places where we can observe the same mechanism:
Thank you very much for your explanations, I do understand the thoughts behind it in terms of usability, but agree with you that I too like the slack approach better.
For now I can deal with it being intended from a usability point of view, even though it may not be expected at first glance.