You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When browsing the Skosmos pages with either vocabulary list, vocabulary info, search results or concept info, the browser focus should go first to the skip to content -link in:
This does not happen in practise, as the focus is moved to the search field first. The culprit seems to be docready.js, which alters the focus in various ways, e.g.
The more modern way to implement autofocus would be to use the autofocus attribute in HTML5 instead of JavaScript. But regardless of the autofocus implementation, it causes accessibility concerns.
My current understanding is that autofocus should be used very sparingly - only on pages whose primary purpose is text input (e.g. Google homepage style search, login forms, contact forms).
I propose dropping the autofocus JS code from the docready.js script in Skosmos and, if necessary, using the autofocus attribute on pages that really deserve it - I think only the contact form qualifies.
When browsing the Skosmos pages with either vocabulary list, vocabulary info, search results or concept info, the browser focus should go first to the skip to content -link in:
Skosmos/view/light.twig
Line 23 in d633b60
This does not happen in practise, as the focus is moved to the search field first. The culprit seems to be docready.js, which alters the focus in various ways, e.g.
Skosmos/resource/js/docready.js
Line 1109 in d633b60
This issue was split from #1036 #1037 #1038 & #1039
The text was updated successfully, but these errors were encountered: