ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Remove unnecessary tabindex (and native outline) from dropdowns

Open mmotyczynska opened this issue 2 years ago • 2 comments

Provide a description of the task

After adding tabindex to the dropdown panel view, some of the dropdowns may now have unnecessary tabindex set as well. One example is the Special Characters dropdown view, where tabindex was added some time ago to prevent the dropdown from closing when a user clicked between the buttons. But now we have tabindex in the dropdown panel view, so in this case there is no need to keep it: https://github.com/ckeditor/ckeditor5/blob/e8bc4cd96381a5add990822501d6d716fc72a2ab/packages/ckeditor5-special-characters/src/ui/specialcharactersview.ts#L94-L98

The side effect of the tabindex is that when the user clicks the area of the panel view or the scrollbar (if exists) and then the user presses any key on the keyboard, a native ugly outline is displayed (if not turned of in CSS).

https://github.com/ckeditor/ckeditor5/assets/95343030/34b51b96-9be4-41ef-b9e1-2fe965da9b3a

A second example is the Template feature. There may be other similar cases, so the scope of this ticket would be to find all such cases and remove the unnecessary tabindex.

📃 Other details

  • Browser: …
  • OS: …
  • CKEditor version: …
  • Installed CKEditor plugins: …

mmotyczynska avatar Jul 26 '23 14:07 mmotyczynska

I noticed that the color picker feature is also adding a redundant tabindex on part of the panel:

Screenshot 2023-07-26 at 16 50 07 Screenshot 2023-07-26 at 16 52 12

niegowski avatar Jul 26 '23 14:07 niegowski

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Jul 31 '24 03:07 CKEditorBot

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Aug 01 '25 23:08 CKEditorBot

We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

CKEditorBot avatar Aug 31 '25 23:08 CKEditorBot