Compare commits

...
Author SHA1 Message Date
ishabaral 1e22ec2c80 build(deps): bump pnpm dependencies 2026-07-27 11:46:03 +05:45
Matteo b395d08db6 fix(web): remove unneeded keyboard focus stops (#12645)
Icons and date columns in tables received keyboard focus without
triggering any action, and the contextual helper icon duplicated its
button's label.
2026-07-24 22:57:51 +02:00
Matteo 1d16dd9e1e fix(web): focus New/Upload dropdown menus on open (#12646)
The New and Upload button dropdowns did not receive focus when opened,
so arrow key navigation between menu items didn't work, unlike the
context menu.
2026-07-24 22:50:02 +02:00
10 changed files with 316 additions and 355 deletions

No files matched your search

@@ -0,0 +1,9 @@
Bugfix: Fix keyboard navigation in "New" and "Upload" dropdown menus
Opening the "New" or "Upload" dropdown menu in the Files app toolbar did
not move focus into the menu, so pressing the arrow keys had no effect
on the highlighted item, unlike the existing right-click context menu.
Both dropdowns now focus their first item on open, restoring arrow key
navigation.
https://github.com/owncloud/ocis/pull/12646
@@ -0,0 +1,10 @@
Bugfix: Remove unneeded keyboard focus stops
Some icons and date columns in tables (spaces list, file list) could
unexpectedly receive keyboard focus even though they don't trigger any
action, adding unnecessary stops when tabbing through the page. The
contextual helper icon also carried a label that duplicated the label
already present on its surrounding button. These redundant focus stops
and duplicate labels have been removed.
https://github.com/owncloud/ocis/pull/12645
@@ -1,7 +1,7 @@
<template>
<div class="oc-contextual-helper">
<oc-button :id="buttonId" :aria-label="$gettext('Show more information')" appearance="raw">
<oc-icon name="question" fill-type="line" size="small" :accessible-label="title" />
<oc-button :id="buttonId" :aria-label="title" appearance="raw">
<oc-icon name="question" fill-type="line" size="small" />
</oc-button>
<oc-info-drop :drop-id="dropId" :toggle="toggleId" v-bind="props" />
</div>
@@ -12,7 +12,6 @@
:src="nameWithFillType"
:transform-source="transformSvgElement"
:role="accessibleLabel !== '' ? 'img' : null"
:tabindex="accessibleLabel ? '0' : null"
:aria-hidden="accessibleLabel === '' ? 'true' : null"
:aria-labelledby="accessibleLabel === '' ? null : svgTitleId"
:focusable="accessibleLabel === '' ? 'false' : null"
@@ -66,11 +66,7 @@
<template #usedQuota="{ item }"> {{ getUsedQuota(item) }}</template>
<template #remainingQuota="{ item }"> {{ getRemainingQuota(item) }}</template>
<template #mdate="{ item }">
<span
v-oc-tooltip="formatDate(item.mdate)"
tabindex="0"
v-text="formatDateRelative(item.mdate)"
/>
<span v-oc-tooltip="formatDate(item.mdate)" v-text="formatDateRelative(item.mdate)" />
</template>
<template #status="{ item }">
<oc-icon
@@ -71,7 +71,7 @@ exports[`SpacesList > should render all spaces in a table 1`] = `
<td class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-totalQuota">1 GB</td>
<td class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-usedQuota">0 B</td>
<td class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-remainingQuota">1 GB</td>
<td class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-mdate"><span tabindex="0"></span></td>
<td class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-mdate"><span></span></td>
<td class="oc-table-cell oc-table-cell-align-right oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-actions oc-pr-s">
<div class="spaces-list-actions"><button type="button" aria-label="Show details" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw oc-mr-xs quick-action-button spaces-table-btn-details oc-p-xs">
<!--v-if-->
@@ -99,7 +99,7 @@ exports[`SpacesList > should render all spaces in a table 1`] = `
<td class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-totalQuota">2 GB</td>
<td class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-usedQuota">500 MB</td>
<td class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-remainingQuota">1.5 GB</td>
<td class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-mdate"><span tabindex="0"></span></td>
<td class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-mdate"><span></span></td>
<td class="oc-table-cell oc-table-cell-align-right oc-table-cell-align-middle oc-table-cell-width-auto oc-td oc-table-data-cell oc-table-data-cell-actions oc-pr-s">
<div class="spaces-list-actions"><button type="button" aria-label="Show details" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw oc-mr-xs quick-action-button spaces-table-btn-details oc-p-xs">
<!--v-if-->
@@ -21,6 +21,7 @@
class="oc-width-auto"
mode="click"
close-on-click
focus-on-open
padding-size="small"
>
<oc-list id="create-list" :class="areFileExtensionsShown ? 'expanded-list' : null">
@@ -121,6 +122,7 @@
mode="click"
class="oc-width-auto"
close-on-click
focus-on-open
padding-size="small"
@show-drop="showDrop"
>
@@ -2,7 +2,7 @@
exports[`CreateAndUpload component > action buttons > should show and be enabled if file creation is possible 1`] = `
"<div class="create-and-upload-actions oc-flex-inline oc-mr-s"><span><button type="button" aria-label="New folder" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-primary oc-button-primary-filled" id="new-folder-btn"><!--v-if--> <!-- @slot Content of the button --> <oc-icon-stub name="resource-type-folder" filltype="fill" accessiblelabel="" type="span" size="medium" variation="passive" color=""></oc-icon-stub> <span>New Folder</span></button></span> <span><button type="button" aria-label="Upload files or folders" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-outline" id="upload-menu-btn"><!--v-if--> <!-- @slot Content of the button --> <oc-icon-stub name="upload" filltype="line" accessiblelabel="" type="span" size="medium" variation="passive" color=""></oc-icon-stub> <span>Upload</span></button></span>
<oc-drop-stub dropid="upload-menu-drop" popperoptions="[object Object]" toggle="#upload-menu-btn" position="bottom-start" mode="click" closeonclick="true" isnested="false" paddingsize="small" offset="" samewidthastarget="false" focusonopen="false" class="oc-width-auto">
<oc-drop-stub dropid="upload-menu-drop" popperoptions="[object Object]" toggle="#upload-menu-btn" position="bottom-start" mode="click" closeonclick="true" isnested="false" paddingsize="small" offset="" samewidthastarget="false" focusonopen="true" class="oc-width-auto">
<oc-list-stub raw="false" id="upload-list">
<li class="oc-menu-item-hover">
<resource-upload-stub btnlabel="" btnclass="oc-width-1-1" isfolder="false"></resource-upload-stub>
@@ -19,7 +19,7 @@ exports[`CreateAndUpload component > action buttons > should show and be enabled
exports[`CreateAndUpload component > file handlers > should show entries for all new file handlers 1`] = `
"<div class="create-and-upload-actions oc-flex-inline oc-mr-s"><span><button type="button" aria-label="New folder" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-primary oc-button-primary-filled" id="new-folder-btn"><!--v-if--> <!-- @slot Content of the button --> <oc-icon-stub name="resource-type-folder" filltype="fill" accessiblelabel="" type="span" size="medium" variation="passive" color=""></oc-icon-stub> <span>New Folder</span></button></span> <span><button type="button" aria-label="Upload files or folders" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-outline" id="upload-menu-btn"><!--v-if--> <!-- @slot Content of the button --> <oc-icon-stub name="upload" filltype="line" accessiblelabel="" type="span" size="medium" variation="passive" color=""></oc-icon-stub> <span>Upload</span></button></span>
<oc-drop-stub dropid="upload-menu-drop" popperoptions="[object Object]" toggle="#upload-menu-btn" position="bottom-start" mode="click" closeonclick="true" isnested="false" paddingsize="small" offset="" samewidthastarget="false" focusonopen="false" class="oc-width-auto">
<oc-drop-stub dropid="upload-menu-drop" popperoptions="[object Object]" toggle="#upload-menu-btn" position="bottom-start" mode="click" closeonclick="true" isnested="false" paddingsize="small" offset="" samewidthastarget="false" focusonopen="true" class="oc-width-auto">
<oc-list-stub raw="false" id="upload-list">
<li class="oc-menu-item-hover">
<resource-upload-stub btnlabel="" btnclass="oc-width-1-1" isfolder="false"></resource-upload-stub>
@@ -155,11 +155,7 @@
<slot name="remainingQuota" :resource="item" />
</template>
<template #mdate="{ item }">
<span
v-oc-tooltip="formatDate(item.mdate)"
tabindex="0"
v-text="formatDateRelative(item.mdate)"
/>
<span v-oc-tooltip="formatDate(item.mdate)" v-text="formatDateRelative(item.mdate)" />
</template>
<template #indicators="{ item }">
<resource-status-indicators
+287 -338
View File
File diff suppressed because it is too large. Load diff