Skip to content

Commit bf81807

Browse files
fix(a11y): make /assets/files accessible (#13987)
* fix(a11y): make /assets/files accessible (LE-1744) Bring the Files page to WCAG 2.1 A/AA, verified with IBM Equal Access plus keyboard/focus tests. - Name the icon-only actions column header, hidden visually (4.1.2) - Open the row actions menu by keyboard from the grid cell (2.1.1) - Label the upload/bulk-delete buttons so they are named on mobile (4.1.2) - Restore a keyboard-only :focus-visible ring on borderless grid cells (2.4.7) - Merge the bulk-delete dialog trigger via asChild to remove the duplicate tab stop (2.4.3) - Move focus into the cell editor when renaming (2.4.3) - Make the upload "try again" retry a real button (2.1.1) Add a dedicated Playwright a11y suite (files.a11y.spec.ts) covering the full state matrix and keyboard/focus behaviour, move the IBM baseline folder under tests/a11y, and baseline the known Radix menu-portal landmark item. * feat(a11y): add frontend accessibility check skill documentation * fix(a11y): return focus to upload button after file picker cancel (LE-1744) Keyboard-activating Upload Files then dismissing the native picker with Esc dropped focus to <body> (WCAG 2.4.3). Only blur on mouse clicks (to keep the #13178 tooltip fix); restore focus to the trigger on keyboard activation. Adds two behavioural a11y tests.
1 parent 575a0d7 commit bf81807

15 files changed

Lines changed: 886 additions & 363 deletions

File tree

.agents/skills/frontend-a11y-check/SKILL.md

Lines changed: 134 additions & 124 deletions
Large diffs are not rendered by default.

.secrets.baseline

Lines changed: 185 additions & 185 deletions
Large diffs are not rendered by default.

src/frontend/.achecker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ outputFormat:
1111
- html
1212
- json
1313
outputFilenameTimestamp: false
14-
baselineFolder: tests/baselines
14+
baselineFolder: tests/a11y/baselines
1515
outputFolder: coverage/accessibility-reports

src/frontend/src/locales/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@
683683
"fileManager.uploadOrImport": "Dateien hochladen oder importieren",
684684
"files.cancel": "Abbrechen",
685685
"files.columnModified": "Geändert",
686+
"files.columnActions": "Aktionen",
686687
"files.columnName": "Ihren Namen",
687688
"files.columnSize": "Größe",
688689
"files.columnType": "Typ",

src/frontend/src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@
952952
"files.columnType": "Type",
953953
"files.columnSize": "Size",
954954
"files.columnModified": "Modified",
955+
"files.columnActions": "Actions",
955956
"files.rename": "Rename",
956957
"files.download": "Download",
957958
"files.duplicate": "Duplicate",

src/frontend/src/locales/es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@
683683
"fileManager.uploadOrImport": "Subir o importar archivos",
684684
"files.cancel": "Cancelar",
685685
"files.columnModified": "Modificado",
686+
"files.columnActions": "Acciones",
686687
"files.columnName": "Nombre",
687688
"files.columnSize": "Tamaño",
688689
"files.columnType": "Tipo",

src/frontend/src/locales/fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@
683683
"fileManager.uploadOrImport": "Télécharger ou importer des fichiers",
684684
"files.cancel": "Annuler",
685685
"files.columnModified": "Modifiée",
686+
"files.columnActions": "Actions",
686687
"files.columnName": "Nom",
687688
"files.columnSize": "Taille",
688689
"files.columnType": "Type",

src/frontend/src/locales/ja.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@
683683
"fileManager.uploadOrImport": "ファイルのアップロードまたはインポート",
684684
"files.cancel": "キャンセル",
685685
"files.columnModified": "変更済み",
686+
"files.columnActions": "アクション",
686687
"files.columnName": "名前",
687688
"files.columnSize": "サイズ",
688689
"files.columnType": "タイプ",

src/frontend/src/locales/pt.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@
683683
"fileManager.uploadOrImport": "Carregar ou importar arquivos",
684684
"files.cancel": "Cancelar",
685685
"files.columnModified": "Modificado",
686+
"files.columnActions": "Ações",
686687
"files.columnName": "Nome",
687688
"files.columnSize": "Tamanho",
688689
"files.columnType": "Tipo",

src/frontend/src/locales/zh-Hans.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@
683683
"fileManager.uploadOrImport": "上传或导入文件",
684684
"files.cancel": "取消",
685685
"files.columnModified": "已修改",
686+
"files.columnActions": "操作",
686687
"files.columnName": "名称",
687688
"files.columnSize": "大小",
688689
"files.columnType": "类型",

0 commit comments

Comments
 (0)