From 3da140042c3adc6c39f9da3ea1eefa8bfccbb73a Mon Sep 17 00:00:00 2001 From: Matteo <193476828+mzner@users.noreply.github.com> Date: Fri, 7 Aug 2026 12:48:50 +0000 Subject: [PATCH] fix(web): remove focus from file name in app top bar (#12752) The open file name in the top bar was tabbable via keyboard even though it is not clickable, which was confusing during keyboard navigation. --- .../bugfix-remove-focus-from-open-file-name.md | 10 ++++++++++ web/packages/web-pkg/src/components/AppTopBar.vue | 1 + .../components/__snapshots__/AppTopBar.spec.ts.snap | 12 ++++++------ 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 changelog/unreleased/bugfix-remove-focus-from-open-file-name.md 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`] = ` " -
+
" `;