joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[4.4] Back-end Edit form(s): focus on the Title field is missing

Open pe7er opened this issue 1 year ago • 5 comments

When creating a new Article, Category, Menu Item, or Module in Joomla 4.4.5 and 5.1.1, the focus doesn't automatically land on the Title field.

Steps to reproduce the issue

In the back-end, create a new Article, Category, Menu Item or Module.

Expected result

I would expect the mouse cursor to start in the first required Title field, so that I can begin typing a title right away.

new-article-2

Actual result

Instead, there's no focus on the Title field. You have to manually click in the Title field with your mouse or press the Tab key eight times on your keyboard. Then the focus is on the Title field and you can start typing a title.

new-article-1

System information (as much as possible)

Additional comments

For existing item the focus should probably not be on the Title when you open the item for editing.

pe7er avatar Jun 20 '24 15:06 pe7er

That would create a whole bunch of accessibility issues

brianteeman avatar Jun 20 '24 15:06 brianteeman

That would create a whole bunch of accessibility issues

Could we use for new articles an id for the title field and use this in the edit link?

rdeutz avatar Jun 26 '24 11:06 rdeutz

the issue is for new articles not editing existing articles

brianteeman avatar Jun 26 '24 12:06 brianteeman

I know that's why I am asking

rdeutz avatar Jun 26 '24 17:06 rdeutz

The same accessibility issues would be present

brianteeman avatar Jun 26 '24 17:06 brianteeman

In this single case it would be possible to use the autofocus. But in consequence we would have a non consistent behaviour, because all other foms don't have autofocus. Autofocus is an issue for accessibility, as you can find in different publications.

Accessiblity and consisent behaviour has priority so I close this issue.

chmst avatar Jul 07 '24 19:07 chmst

Accessiblity and consisent behaviour has priority so I close this issue.

Agreed. Gary (thanks @Bodge-IT !) asked a Joomla user that uses a Screen Reader. They answered that maintaining consistent focus behavior in all areas of the Joomla back-end is important for SR users to avoid unnecessary confusion and frustration.

pe7er avatar Jul 09 '24 08:07 pe7er