ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

unexpected hover state when accessing three-dot menu on small screens

Open DenizTurhan86 opened this issue 1 year ago • 4 comments

📝 Provide detailed reproduction steps (if any)

  1. access ckeditor on a small screen where not all toolbar items are visible first (for example: https://ckeditor.com/ckeditor-5/demo/mobile-support/)
  2. click or tap the three-dot menu
  3. 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.

DenizTurhan86 avatar Sep 17 '25 15:09 DenizTurhan86

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:

Image

Image

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.

Reinmar avatar Sep 20 '25 20:09 Reinmar

For the reference, this is CKEditor's behavior:

https://github.com/user-attachments/assets/d9f30ed9-512d-4730-aa05-06745703ae95

Reinmar avatar Sep 20 '25 20:09 Reinmar

Other notable places where we can observe the same mechanism:


Image
Image
Image

Reinmar avatar Sep 20 '25 20:09 Reinmar

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.

DenizTurhan86 avatar Sep 24 '25 13:09 DenizTurhan86