diff --git a/changelog/unreleased/bugfix-remove-focus-from-open-file-name.md b/changelog/unreleased/bugfix-remove-focus-from-open-file-name.md new file mode 100644 index 00000000000..1f73064186e --- /dev/null +++ b/changelog/unreleased/bugfix-remove-focus-from-open-file-name.md @@ -0,0 +1,10 @@ +Bugfix: Remove keyboard focus from open file name in top bar + +When opening a file such as a text or markdown document, the file name shown +in the top bar could be reached via keyboard tabbing even though it was not +clickable and triggered no action. This made keyboard navigation confusing. + +The file name is no longer part of the tab order, since it is a purely +informational, non-interactive element. + +https://github.com/owncloud/ocis/pull/12752 diff --git a/web/packages/web-pkg/src/components/AppTopBar.vue b/web/packages/web-pkg/src/components/AppTopBar.vue index e32c56e3b12..6ec16162e4d 100644 --- a/web/packages/web-pkg/src/components/AppTopBar.vue +++ b/web/packages/web-pkg/src/components/AppTopBar.vue @@ -7,6 +7,7 @@ v-if="resource" id="app-top-bar-resource" :is-thumbnail-displayed="false" + :is-resource-clickable="false" :is-extension-displayed="areFileExtensionsShown" :path-prefix="getPathPrefix(resource)" :resource="resource" diff --git a/web/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap b/web/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap index 673459dfda8..645258ff106 100644 --- a/web/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap +++ b/web/packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap @@ -2,36 +2,36 @@ exports[`AppTopBar > if a resource is present > renders a resource and dropdownActions (if given) and a close button 1`] = ` " -
+
" `; exports[`AppTopBar > if a resource is present > renders a resource and dropdownActions as well as mainActions (if both are passed) and a close button 1`] = ` " -
+
" `; exports[`AppTopBar > if a resource is present > renders a resource and mainActions (if given) and a close button 1`] = ` " -
+
" `; exports[`AppTopBar > if a resource is present > renders a resource and no actions (if none given) and a close button 1`] = ` " -
+
" `; exports[`AppTopBar > if a resource is present > renders a resource without file extension if areFileExtensionsShown is set to false 1`] = ` " -
+
" `; exports[`AppTopBar > if no resource is present > renders only a close button 1`] = ` " -
+
" `;