From 8b8a40321c1686e1d6672d0ee9cc14a482a12e34 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 00:17:40 +0000 Subject: [PATCH 1/5] chore(deps): Bump the npm-minor-and-patch group with 5 updates Bumps the npm-minor-and-patch group with 5 updates: | Package | From | To | | --- | --- | --- | | [@playwright/test](https://github.com/microsoft/playwright) | `1.65.0` | `1.65.1` | | [axe-core](https://github.com/dequelabs/axe-core) | `4.13.0` | `4.14.1` | | [eslint](https://github.com/eslint/eslint) | `10.14.0` | `10.15.0` | | [fake-indexeddb](https://github.com/dumbmatter/fakeIndexedDB) | `6.2.7` | `6.2.8` | | [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check) | `4.10.2` | `4.10.3` | Updates `@playwright/test` from 1.65.0 to 1.65.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.65.0...v1.65.1) Updates `axe-core` from 4.13.0 to 4.14.1 - [Release notes](https://github.com/dequelabs/axe-core/releases) - [Changelog](https://github.com/dequelabs/axe-core/blob/develop/CHANGELOG.md) - [Commits](https://github.com/dequelabs/axe-core/compare/v4.13.0...v4.14.1) Updates `eslint` from 10.14.0 to 10.15.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](https://github.com/eslint/eslint/compare/v10.14.0...v10.15.0) Updates `fake-indexeddb` from 6.2.7 to 6.2.8 - [Release notes](https://github.com/dumbmatter/fakeIndexedDB/releases) - [Changelog](https://github.com/dumbmatter/fakeIndexedDB/blob/master/CHANGELOG.md) - [Commits](https://github.com/dumbmatter/fakeIndexedDB/compare/v6.2.7...v6.2.8) Updates `fast-check` from 4.10.2 to 4.10.3 - [Release notes](https://github.com/dubzzz/fast-check/releases) - [Changelog](https://github.com/dubzzz/fast-check/blob/main/packages/fast-check/CHANGELOG.md) - [Commits](https://github.com/dubzzz/fast-check/commits/v4.10.3/packages/fast-check) --- updated-dependencies: - dependency-name: "@playwright/test" dependency-version: 1.65.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-and-patch - dependency-name: axe-core dependency-version: 4.14.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: eslint dependency-version: 10.15.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: fake-indexeddb dependency-version: 6.2.8 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-and-patch - dependency-name: fast-check dependency-version: 4.10.3 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-minor-and-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 167 ++++++++++++++-------------------------------- package.json | 10 +-- 2 files changed, 56 insertions(+), 121 deletions(-) diff --git a/package-lock.json b/package-lock.json index d4ec5dd..7b6439b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,17 +8,17 @@ "devDependencies": { "@devicefarmer/adbkit": "file:scripts/no-adbkit", "@eslint/js": "10.0.1", - "@playwright/test": "1.65.0", + "@playwright/test": "1.65.1", "@stylistic/eslint-plugin": "5.10.0", - "axe-core": "4.13.0", + "axe-core": "4.14.1", "chrome-webstore-upload": "6.0.1", "chrome-webstore-upload-cli": "4.0.2", "cldr-core": "48.2.0", "cldr-localenames-full": "48.2.0", - "eslint": "10.14.0", + "eslint": "10.15.0", "eslint-plugin-no-unsanitized": "4.1.5", - "fake-indexeddb": "6.2.7", - "fast-check": "4.10.2", + "fake-indexeddb": "6.2.8", + "fast-check": "4.10.3", "fflate": "0.8.3", "globals": "17.14.0", "jsdom": "30.1.1", @@ -320,37 +320,20 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.23.5", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", - "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "version": "0.23.6", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.6.tgz", + "integrity": "sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w==", "dev": true, "license": "Apache-2.0", "dependencies": { "@eslint/object-schema": "^3.0.5", "debug": "^4.3.1", - "minimatch": "^10.2.4" + "minimatch": "^11.0.5" }, "engines": { "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@eslint/config-array/node_modules/minimatch": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.1.tgz", - "integrity": "sha512-t+Vn6DX4wPCxS23y03C0uhF7S1jpi1GfqPrnlEipCJaA2ykiNbMkVlDutZtmvLfRcUN6R8AYVlzTsQrT4RZoLQ==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/nonrecursive-glob-match": "^1.0.1", - "brace-expansion": "^5.0.12" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/@eslint/config-helpers": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz", @@ -401,24 +384,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@eslint/eslintrc/node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", - "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, "node_modules/@eslint/eslintrc/node_modules/eslint-visitor-keys": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", @@ -463,19 +428,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -685,13 +637,13 @@ "license": "MIT" }, "node_modules/@playwright/test": { - "version": "1.65.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.65.0.tgz", - "integrity": "sha512-iGURLGuKDLakSEl7Pgfv8h7f+XLT+V861Wfhz0zlEl5nyFuKUopdkFBPKqTllTUp06aOwPuH8iuUEb3yp3MpbQ==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.65.1.tgz", + "integrity": "sha512-y+NCIRm2LvY4slUVWvGh1nujJ8RF/hEisIsq2mtUPgdQC4L701bq5hZGMhrpeXjACvwvO9tj5dJqhvM6TP9lbw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.65.0" + "playwright": "1.65.1" }, "bin": { "playwright": "cli.js" @@ -1217,23 +1169,6 @@ "json-buffer": "3.0.1" } }, - "node_modules/addons-linter/node_modules/minimatch": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.1.tgz", - "integrity": "sha512-t+Vn6DX4wPCxS23y03C0uhF7S1jpi1GfqPrnlEipCJaA2ykiNbMkVlDutZtmvLfRcUN6R8AYVlzTsQrT4RZoLQ==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/nonrecursive-glob-match": "^1.0.1", - "brace-expansion": "^5.0.12" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/addons-linter/node_modules/pino": { "version": "10.3.1", "resolved": "https://registry.npmjs.org/pino/-/pino-10.3.1.tgz", @@ -1455,9 +1390,9 @@ } }, "node_modules/axe-core": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.13.0.tgz", - "integrity": "sha512-UzGt8zg7Ny8djbYMhxl2zuEevVa7r2gJjYY5Lwr1xM7+XU2nd6CkIWFTVcCIbAP63vSz71NaVyyuSk9lHKcy0A==", + "version": "4.14.1", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.14.1.tgz", + "integrity": "sha512-FHfa+lmNjQZfJz1q8wKqIDwC6DExcHt/pkjNQb09a3NPjCKg2rhu5qb2S4r76ASyFNNtuFooJpZe37OgudVGtQ==", "dev": true, "license": "MPL-2.0", "engines": { @@ -2371,9 +2306,9 @@ } }, "node_modules/eslint": { - "version": "10.14.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.14.0.tgz", - "integrity": "sha512-T0pNsxkb9IKmtQjhpK3d7nWOpFv+YHuMbTJnSVMoQblF0onvXfErrtp4V1jHtsQPan7dKaGVD0q1WCXnzMF31A==", + "version": "10.15.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.15.0.tgz", + "integrity": "sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg==", "dev": true, "license": "MIT", "workspaces": [ @@ -2382,7 +2317,7 @@ "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.2", - "@eslint/config-array": "^0.23.5", + "@eslint/config-array": "^0.23.6", "@eslint/config-helpers": "^0.7.0", "@eslint/core": "^1.2.1", "@eslint/plugin-kit": "^0.7.3", @@ -2407,7 +2342,7 @@ "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", - "minimatch": "^10.2.6", + "minimatch": "^11.0.5", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, @@ -2471,23 +2406,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/minimatch": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.1.tgz", - "integrity": "sha512-t+Vn6DX4wPCxS23y03C0uhF7S1jpi1GfqPrnlEipCJaA2ykiNbMkVlDutZtmvLfRcUN6R8AYVlzTsQrT4RZoLQ==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/nonrecursive-glob-match": "^1.0.1", - "brace-expansion": "^5.0.12" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/espree": { "version": "11.2.0", "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", @@ -2567,9 +2485,9 @@ } }, "node_modules/fake-indexeddb": { - "version": "6.2.7", - "resolved": "https://registry.npmjs.org/fake-indexeddb/-/fake-indexeddb-6.2.7.tgz", - "integrity": "sha512-g0ghQ+BmU3CSZaHup5FigEAAtCmtNyxkrmID7OAeK2qONHghw1aQ2l2T1RxmfhP1H1tEXVRWArUTGVCk5832ww==", + "version": "6.2.8", + "resolved": "https://registry.npmjs.org/fake-indexeddb/-/fake-indexeddb-6.2.8.tgz", + "integrity": "sha512-mpVW/HLUqwKXJ6F/s0hMgdK1eQfM4ncTHDioNGHWL0WKV3VcZCoZq1NKgboBbAge07aRCO7L48yziKssL59XEQ==", "dev": true, "license": "Apache-2.0", "engines": { @@ -2577,9 +2495,9 @@ } }, "node_modules/fast-check": { - "version": "4.10.2", - "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-4.10.2.tgz", - "integrity": "sha512-iK2f+YrcmoeGqk6fA0ea2bptcu/itMIm4NfEozq6N25+aG6h7s5HZbB/k1aV7b5w5sFLMCbbtRUsTVR+BgC3xw==", + "version": "4.10.3", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-4.10.3.tgz", + "integrity": "sha512-SBaU6nhh+sXxb05r2IHAKfxnR/1Pu6MqtHYaewM1BY6V5xzOxOk+4yoWO7WfeeyZG1iArFE6/DO/7iLYMUuOJg==", "dev": true, "funding": [ { @@ -3652,6 +3570,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/minimatch": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.1.tgz", + "integrity": "sha512-t+Vn6DX4wPCxS23y03C0uhF7S1jpi1GfqPrnlEipCJaA2ykiNbMkVlDutZtmvLfRcUN6R8AYVlzTsQrT4RZoLQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.0.1", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/minimist": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", @@ -4057,13 +3992,13 @@ "license": "MIT" }, "node_modules/playwright": { - "version": "1.65.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.65.0.tgz", - "integrity": "sha512-F3AMWcR44qMBt4kq+6Kb6mX7bjGXshktKFOPULd7reED6ZJWevjbNRqysP7q+AATE9kdPEZBibex1BYsvpVoeA==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.65.1.tgz", + "integrity": "sha512-vJ1FuoOrNwOKHUIVEvSt3jT1L+wjjDpwhwIstKtfvTh8XIG4FG4bIFuvNdMxi81LGfAhUgUZleVFaOLY4RIUUw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.65.0" + "playwright-core": "1.65.1" }, "bin": { "playwright": "cli.js" @@ -4073,9 +4008,9 @@ } }, "node_modules/playwright-core": { - "version": "1.65.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.65.0.tgz", - "integrity": "sha512-vNSKgH6YqtN7cdT/L334zo0a+YwkrpicyrHJlWWPIm/Q+Nn2SWInil01oT0mbu96U4GgoRtCYQD9CzJQgju+lA==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.65.1.tgz", + "integrity": "sha512-hqPpz7blSMPxWVdoeE1yiBSzXsKiVOd2k+kjCvmUywD2GPO2Dd9HfcWnq9NN0GHbNZDFgZ9JfBFr+X5/BLo0qw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/package.json b/package.json index 424cc24..9029d25 100644 --- a/package.json +++ b/package.json @@ -17,17 +17,17 @@ "devDependencies": { "@devicefarmer/adbkit": "file:scripts/no-adbkit", "@eslint/js": "10.0.1", - "@playwright/test": "1.65.0", + "@playwright/test": "1.65.1", "@stylistic/eslint-plugin": "5.10.0", - "axe-core": "4.13.0", + "axe-core": "4.14.1", "chrome-webstore-upload": "6.0.1", "chrome-webstore-upload-cli": "4.0.2", "cldr-core": "48.2.0", "cldr-localenames-full": "48.2.0", - "eslint": "10.14.0", + "eslint": "10.15.0", "eslint-plugin-no-unsanitized": "4.1.5", - "fake-indexeddb": "6.2.7", - "fast-check": "4.10.2", + "fake-indexeddb": "6.2.8", + "fast-check": "4.10.3", "fflate": "0.8.3", "globals": "17.14.0", "jsdom": "30.1.1", From 76c0136e65271808df4bb23091ed1dcc8a65dce9 Mon Sep 17 00:00:00 2001 From: minitru Date: Sat, 5 Dec 2026 02:36:55 -0500 Subject: [PATCH 2/5] Fix accessible names for language controls Signed-off-by: minitru --- extension/_locales/en/messages.json | 48 +++++++---------------------- extension/_locales/es/messages.json | 48 +++++++---------------------- extension/dashboard.js | 23 +++++++++++--- extension/popup.js | 1 + test/dom/dashboard.test.mjs | 5 ++- test/dom/popup.test.mjs | 1 + 6 files changed, 47 insertions(+), 79 deletions(-) diff --git a/extension/_locales/en/messages.json b/extension/_locales/en/messages.json index f380cd2..ac423d2 100644 --- a/extension/_locales/en/messages.json +++ b/extension/_locales/en/messages.json @@ -746,8 +746,8 @@ "description": "Second line of the All card." }, "dash_shelf_all_label_one": { - "message": "All languages, $COUNT$ word", - "description": "Accessible name of the All card.", + "message": "All, every language, $COUNT$ word", + "description": "Accessible name of the All card. Starts with the card's visible text (dash_shelf_all, dash_shelf_all_sub, the count), in that order (WCAG 2.5.3).", "placeholders": { "count": { "content": "{count}" @@ -755,8 +755,8 @@ } }, "dash_shelf_all_label_other": { - "message": "All languages, $COUNT$ words", - "description": "Accessible name of the All card.", + "message": "All, every language, $COUNT$ words", + "description": "Accessible name of the All card. Starts with the card's visible text (dash_shelf_all, dash_shelf_all_sub, the count), in that order (WCAG 2.5.3).", "placeholders": { "count": { "content": "{count}" @@ -764,8 +764,8 @@ } }, "dash_shelf_card_label_one": { - "message": "$LANGUAGE$, $ENDONYM$, $COUNT$ word", - "description": "Accessible name of a language card. {language} in the interface language, {endonym} in its own.", + "message": "$ENDONYM$, $LANGUAGE$, $COUNT$ (word)", + "description": "Accessible name of a language card, in the order the card shows it (WCAG 2.5.3): {endonym} in the language itself, {language} in the interface language, then the count. The unit is in parentheses so the visible text stays an unbroken run of the name.", "placeholders": { "language": { "content": "{language}" @@ -779,8 +779,8 @@ } }, "dash_shelf_card_label_other": { - "message": "$LANGUAGE$, $ENDONYM$, $COUNT$ words", - "description": "Accessible name of a language card.", + "message": "$ENDONYM$, $LANGUAGE$, $COUNT$ (words)", + "description": "Accessible name of a language card, in the order the card shows it (WCAG 2.5.3): {endonym} in the language itself, {language} in the interface language, then the count. The unit is in parentheses so the visible text stays an unbroken run of the name.", "placeholders": { "language": { "content": "{language}" @@ -793,35 +793,9 @@ } } }, - "dash_shelf_card_label_hidden_one": { - "message": "$LANGUAGE$, $ENDONYM$, $COUNT$ word, hidden on pages", - "description": "Accessible name of a hidden language's card.", - "placeholders": { - "language": { - "content": "{language}" - }, - "endonym": { - "content": "{endonym}" - }, - "count": { - "content": "{count}" - } - } - }, - "dash_shelf_card_label_hidden_other": { - "message": "$LANGUAGE$, $ENDONYM$, $COUNT$ words, hidden on pages", - "description": "Accessible name of a hidden language's card.", - "placeholders": { - "language": { - "content": "{language}" - }, - "endonym": { - "content": "{endonym}" - }, - "count": { - "content": "{count}" - } - } + "dash_shelf_hidden_label": { + "message": "hidden (on pages)", + "description": "Added to a hidden language card's accessible name. Starts with dash_shelf_hidden, the word the card shows (WCAG 2.5.3); the rest is in parentheses." }, "dash_shelf_week_one": { "message": "+$COUNT$ this week", diff --git a/extension/_locales/es/messages.json b/extension/_locales/es/messages.json index 01eb56e..63b3a72 100644 --- a/extension/_locales/es/messages.json +++ b/extension/_locales/es/messages.json @@ -746,8 +746,8 @@ "description": "Second line of the All card." }, "dash_shelf_all_label_one": { - "message": "Todos los idiomas, $COUNT$ palabra", - "description": "Accessible name of the All card.", + "message": "Todas, todos los idiomas, $COUNT$ palabra", + "description": "Accessible name of the All card. Starts with the card's visible text (dash_shelf_all, dash_shelf_all_sub, the count), in that order (WCAG 2.5.3).", "placeholders": { "count": { "content": "{count}" @@ -755,8 +755,8 @@ } }, "dash_shelf_all_label_other": { - "message": "Todos los idiomas, $COUNT$ palabras", - "description": "Accessible name of the All card.", + "message": "Todas, todos los idiomas, $COUNT$ palabras", + "description": "Accessible name of the All card. Starts with the card's visible text (dash_shelf_all, dash_shelf_all_sub, the count), in that order (WCAG 2.5.3).", "placeholders": { "count": { "content": "{count}" @@ -764,8 +764,8 @@ } }, "dash_shelf_card_label_one": { - "message": "$LANGUAGE$, $ENDONYM$, $COUNT$ palabra", - "description": "Accessible name of a language card. {language} in the interface language, {endonym} in its own.", + "message": "$ENDONYM$, $LANGUAGE$, $COUNT$ (palabra)", + "description": "Accessible name of a language card, in the order the card shows it (WCAG 2.5.3): {endonym} in the language itself, {language} in the interface language, then the count. The unit is in parentheses so the visible text stays an unbroken run of the name.", "placeholders": { "language": { "content": "{language}" @@ -779,8 +779,8 @@ } }, "dash_shelf_card_label_other": { - "message": "$LANGUAGE$, $ENDONYM$, $COUNT$ palabras", - "description": "Accessible name of a language card.", + "message": "$ENDONYM$, $LANGUAGE$, $COUNT$ (palabras)", + "description": "Accessible name of a language card, in the order the card shows it (WCAG 2.5.3): {endonym} in the language itself, {language} in the interface language, then the count. The unit is in parentheses so the visible text stays an unbroken run of the name.", "placeholders": { "language": { "content": "{language}" @@ -793,35 +793,9 @@ } } }, - "dash_shelf_card_label_hidden_one": { - "message": "$LANGUAGE$, $ENDONYM$, $COUNT$ palabra, oculta en las páginas", - "description": "Accessible name of a hidden language's card.", - "placeholders": { - "language": { - "content": "{language}" - }, - "endonym": { - "content": "{endonym}" - }, - "count": { - "content": "{count}" - } - } - }, - "dash_shelf_card_label_hidden_other": { - "message": "$LANGUAGE$, $ENDONYM$, $COUNT$ palabras, ocultas en las páginas", - "description": "Accessible name of a hidden language's card.", - "placeholders": { - "language": { - "content": "{language}" - }, - "endonym": { - "content": "{endonym}" - }, - "count": { - "content": "{count}" - } - } + "dash_shelf_hidden_label": { + "message": "oculto (en las páginas)", + "description": "Added to a hidden language card's accessible name. Starts with dash_shelf_hidden, the word the card shows (WCAG 2.5.3); the rest is in parentheses." }, "dash_shelf_week_one": { "message": "+$COUNT$ esta semana", diff --git a/extension/dashboard.js b/extension/dashboard.js index d6b42f6..1740211 100644 --- a/extension/dashboard.js +++ b/extension/dashboard.js @@ -642,11 +642,16 @@ "aria-label": extra.label, onclick: () => setParams({ lang: selected && lang ? null : lang || null }), }, + // The spaces keep the card's text in separate words ("Español Spanish 3"), which the + // name has to contain word for word (WCAG 2.5.3). The card and its foot are flex + // boxes, so the spaces aren't drawn. el("span", { class: "shelf-title", lang: lang || null, dir: "auto" }, title), + " ", el("span", { class: "shelf-sub" }, sub), + " ", el("span", { class: "shelf-foot" }, el("span", { class: "shelf-count num" }, I18n.formatNumber(count)), - meta)); + (meta ?? []).flatMap((m) => [" ", m]))); const li = el("li", { class: `shelf-item${extra.hidden ? " is-hidden" : ""}` }, main); if (extra.menu) { li.append(el("button", { @@ -665,9 +670,19 @@ const items = [card("", t("dash_shelf_all"), t("dash_shelf_all_sub"), total, null, { label: t("dash_shelf_all_label", { count: total }) })]; for (const e of entries) { const meta = []; - if (e.week) meta.push(el("span", { class: "shelf-week" }, t("dash_shelf_week", { count: e.week }))); - if (e.hidden) meta.push(el("span", { class: "shelf-hidden" }, icon("circle", 12), t("dash_shelf_hidden"))); - const label = t(e.hidden ? "dash_shelf_card_label_hidden" : "dash_shelf_card_label", { language: e.name, endonym: endonym(e.lang), count: e.count }); + // The name follows the card's visible text, in the same order, so it contains what a + // voice-control user reads off the card (WCAG 2.5.3 Label in Name). + const name = [t("dash_shelf_card_label", { language: e.name, endonym: endonym(e.lang), count: e.count })]; + if (e.week) { + const week = t("dash_shelf_week", { count: e.week }); + meta.push(el("span", { class: "shelf-week" }, week)); + name.push(week); + } + if (e.hidden) { + meta.push(el("span", { class: "shelf-hidden" }, icon("circle", 12), t("dash_shelf_hidden"))); + name.push(t("dash_shelf_hidden_label")); + } + const label = name.join(", "); items.push(card(e.lang, endonym(e.lang), e.name, e.count, meta, { label, hidden: e.hidden, menu: e })); } items.push(el("li", { class: "shelf-item" }, el("button", { class: "shelf-card shelf-start", type: "button", onclick: startLanguage }, diff --git a/extension/popup.js b/extension/popup.js index a7fd249..aecb065 100644 --- a/extension/popup.js +++ b/extension/popup.js @@ -482,6 +482,7 @@ }, icon(l.hidden ? "circle" : "check", 14), el("span", { class: "chip-label", lang: l.lang, dir: "auto" }, l.endonym), + " ", // a word break: 2.5.3 el("span", { class: "chip-count num", "aria-hidden": "true" }, I18n.formatNumber(l.count))); // On: a check; off: a hollow circle (06 §10), so state never relies on color. main.querySelector(".icon").classList.add("chip-glyph"); diff --git a/test/dom/dashboard.test.mjs b/test/dom/dashboard.test.mjs index 7bd6e2d..712d774 100644 --- a/test/dom/dashboard.test.mjs +++ b/test/dom/dashboard.test.mjs @@ -184,7 +184,10 @@ describe("states (§11)", () => { assert.equal(cards[0].getAttribute("aria-pressed"), "true", "All is selected"); assert.equal(cards[1].querySelector(".shelf-title").textContent, "Русский"); assert.equal(cards[1].querySelector(".shelf-title").lang, "ru"); - assert.equal(cards[1].getAttribute("aria-label"), "Russian, Русский, 5 words"); + // The name leads with the card's visible text, in its order (WCAG 2.5.3 Label in Name). + assert.equal(cards[0].getAttribute("aria-label"), `All, every language, ${cards[0].querySelector(".shelf-count").textContent} words`); + assert.equal(cards[1].getAttribute("aria-label"), "Русский, Russian, 5 (words), +2 this week"); + assert.equal(cards[1].textContent, "Русский Russian 5 +2 this week", "the card's text keeps its words apart"); assert.equal(d.$("#app").dataset.ready, "true"); }); diff --git a/test/dom/popup.test.mjs b/test/dom/popup.test.mjs index a0b94b4..31005cc 100644 --- a/test/dom/popup.test.mjs +++ b/test/dom/popup.test.mjs @@ -186,6 +186,7 @@ describe("states", () => { assert.deepEqual(chips.map((c) => c.querySelector(".chip-label").textContent), ["Русский", "العربية", "Español", "日本語"]); assert.equal(chips[0].getAttribute("aria-label"), "Russian, Русский, 3 words, shown"); assert.equal(chips[3].getAttribute("aria-label"), "Japanese, 日本語, 1 word, shown"); + assert.equal(chips[0].textContent, "Русский 3", "the chip's text keeps its words apart, so the name contains it (WCAG 2.5.3)"); assert.equal(chips[0].getAttribute("aria-pressed"), "true"); assert.equal(chips[1].querySelector(".chip-label").lang, "ar"); assert.deepEqual(chips.map((c) => c.tabIndex), [0, -1, -1, -1], "one tab stop for the chip toolbar"); From 07de1b0695127cd33855adb9b62aac37480b3f54 Mon Sep 17 00:00:00 2001 From: Ayla Croft Date: Sat, 5 Dec 2026 08:54:39 -0500 Subject: [PATCH 3/5] chore(deps): raise the minimatch overrides to 11.0.10 minimatch 11.0.6 to 11.0.9 have a low advisory (a proto key bypasses the shared matcher cache's key weighting), fixed in 11.0.10. Dependabot's security update couldn't apply it because the overrides pin 11.0.8, so they move to 11.0.10. eslint is the only consumer and lints the same files with no errors. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Ayla Croft --- package-lock.json | 85 ++++++++++++++++++++++++++++------------------- package.json | 4 +-- 2 files changed, 53 insertions(+), 36 deletions(-) diff --git a/package-lock.json b/package-lock.json index 52ed6fc..e2e5e71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -148,23 +148,6 @@ "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@eslint/config-array/node_modules/minimatch": { - "version": "11.0.8", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.8.tgz", - "integrity": "sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/nonrecursive-glob-match": "^1.1.0", - "brace-expansion": "^5.0.12" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/@eslint/config-helpers": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz", @@ -727,6 +710,23 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/addons-linter/node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "11.0.10", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.10.tgz", + "integrity": "sha512-L3/cjhQ5E6lft0VCp/2mO3Ic74RnutKy3rz7iGwp/6w1hKcO262g2rbfacFyw6eBig5OdI0nu5PpuA0/WQs9Tw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/addons-linter/node_modules/@eslint/config-helpers": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", @@ -973,6 +973,23 @@ "dev": true, "license": "MIT" }, + "node_modules/addons-linter/node_modules/eslint/node_modules/minimatch": { + "version": "11.0.10", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.10.tgz", + "integrity": "sha512-L3/cjhQ5E6lft0VCp/2mO3Ic74RnutKy3rz7iGwp/6w1hKcO262g2rbfacFyw6eBig5OdI0nu5PpuA0/WQs9Tw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/addons-linter/node_modules/file-entry-cache": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", @@ -1017,23 +1034,6 @@ "json-buffer": "3.0.1" } }, - "node_modules/addons-linter/node_modules/minimatch": { - "version": "11.0.8", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.8.tgz", - "integrity": "sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/nonrecursive-glob-match": "^1.1.0", - "brace-expansion": "^5.0.12" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/addons-linter/node_modules/pino": { "version": "10.3.1", "resolved": "https://registry.npmjs.org/pino/-/pino-10.3.1.tgz", @@ -3502,6 +3502,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/minimatch": { + "version": "11.0.10", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.10.tgz", + "integrity": "sha512-L3/cjhQ5E6lft0VCp/2mO3Ic74RnutKy3rz7iGwp/6w1hKcO262g2rbfacFyw6eBig5OdI0nu5PpuA0/WQs9Tw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/minimist": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", diff --git a/package.json b/package.json index d52c0e8..280a501 100644 --- a/package.json +++ b/package.json @@ -40,10 +40,10 @@ "shell-quote": "1.11.0", "@devicefarmer/adbkit": "$@devicefarmer/adbkit", "eslint": { - "minimatch": "11.0.8" + "minimatch": "11.0.10" }, "@eslint/config-array": { - "minimatch": "11.0.8" + "minimatch": "11.0.10" } } } From a65131bd89722b11f56f59792076cc56c43c777c Mon Sep 17 00:00:00 2001 From: Ayla Croft Date: Sat, 5 Dec 2026 08:54:39 -0500 Subject: [PATCH 4/5] test(a11y): the Tab walk leaves every scroll position as it found it axe-core 4.14 reads only the on-screen part of an element's text for label-content-name-mismatch (WCAG 2.5.3). The narrow dashboard check runs axe in light mode, walks the page with Tab, then runs axe in dark mode. The walk left the language shelf scrolled to its end with the Korean card half outside it: its count was off-screen while "+1 this week" was not, so the visible words were no longer one run of the card's name, which they are at rest. tabWalk now records every scroll position before it starts and puts them back when it ends, so each check sees the page at rest. Focus is left where the walk ends, as before. docs/accessibility.md names axe-core 4.14.1. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Ayla Croft --- docs/accessibility.md | 2 +- test/helpers/a11y-checks.mjs | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/accessibility.md b/docs/accessibility.md index 9f26e3d..b5b674e 100644 --- a/docs/accessibility.md +++ b/docs/accessibility.md @@ -49,7 +49,7 @@ restores the page for searching. | Check | Where | What it covers | |---|---|---| -| axe-core 4.13.0, WCAG 2.0/2.1/2.2 A and AA rules | `test/e2e/a11y.spec.mjs` | Every surface and state in the table below, light and dark: zero violations | +| axe-core 4.14.1, WCAG 2.0/2.1/2.2 A and AA rules | `test/e2e/a11y.spec.mjs` | Every surface and state in the table below, light and dark: zero violations | | Keyboard walk | same file, `test/helpers/a11y-checks.mjs` | Tab reaches every control; each shows a focus indicator (outline or ring, else a screenshot difference); none is hidden under a sticky header or bar (2.4.11); modal layers keep Tab inside | | Target size | same | Every pointer target at least 24 × 24 CSS px (2.5.8), WCAG's inline-link exception aside; the word card's buttons too | | Text spacing | same | WCAG's 1.4.12 overrides cut no text off, except in the word list's one-line rows (the inspector shows every field whole) | diff --git a/test/helpers/a11y-checks.mjs b/test/helpers/a11y-checks.mjs index 8e8e72e..e60c8cf 100644 --- a/test/helpers/a11y-checks.mjs +++ b/test/helpers/a11y-checks.mjs @@ -68,6 +68,15 @@ async function expectedStops(page) { export async function tabWalk(page, { max = 250 } = {}) { await page.evaluate(describeFn); await page.addStyleTag({ content: "*, *::before, *::after { caret-color: transparent !important; }" }).catch(() => {}); + // Every scroll position, so the walk leaves the page as it found it. Tab scrolls each + // stop into view; without this, the checks that run next (axe in the other theme) see + // whatever the last stop left, such as a scrolling row stopped at its end with a card + // half outside it, and axe reads only the on-screen part of that card's text. + await page.evaluate(() => { + globalThis.__kScroll = [document.scrollingElement, ...document.querySelectorAll("*")] + .filter((n) => n && (n.scrollTop || n.scrollLeft || n.scrollHeight > n.clientHeight || n.scrollWidth > n.clientWidth)) + .map((n) => [n, n.scrollLeft, n.scrollTop]); + }); // Start at the top of the page (or of the open modal layer): a focusable marker put first // in the body sets the browser's sequential focus starting point, then goes away. await page.evaluate(() => { @@ -191,6 +200,10 @@ export async function tabWalk(page, { max = 250 } = {}) { if (left.get(e.name)) left.set(e.name, left.get(e.name) - 1); else problems.push(`not reachable with Tab: ${e.name}`); } + await page.evaluate(() => { + for (const [n, left, top] of globalThis.__kScroll ?? []) if (n.isConnected) n.scrollTo({ left, top, behavior: "instant" }); + delete globalThis.__kScroll; + }); return { stops, problems }; } From caf8c8f8350af6b12cb30472b6aeca52748dcacb Mon Sep 17 00:00:00 2001 From: Ayla Croft Date: Sat, 5 Dec 2026 08:58:18 -0500 Subject: [PATCH 5/5] chore(deps): regenerate the lockfile so every minimatch 11 is 11.0.10 The previous commit's lockfile kept two nested minimatch 11.0.8 entries left over from an earlier resolution. Regenerated from main's lockfile with this branch's package.json: one minimatch 11 remains, at 11.0.10. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Ayla Croft --- package-lock.json | 68 ----------------------------------------------- 1 file changed, 68 deletions(-) diff --git a/package-lock.json b/package-lock.json index e2e5e71..3e71edf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -242,23 +242,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "11.0.8", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.8.tgz", - "integrity": "sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/nonrecursive-glob-match": "^1.1.0", - "brace-expansion": "^5.0.12" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -710,23 +693,6 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/addons-linter/node_modules/@eslint/config-array/node_modules/minimatch": { - "version": "11.0.10", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.10.tgz", - "integrity": "sha512-L3/cjhQ5E6lft0VCp/2mO3Ic74RnutKy3rz7iGwp/6w1hKcO262g2rbfacFyw6eBig5OdI0nu5PpuA0/WQs9Tw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/nonrecursive-glob-match": "^1.1.0", - "brace-expansion": "^5.0.12" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/addons-linter/node_modules/@eslint/config-helpers": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", @@ -973,23 +939,6 @@ "dev": true, "license": "MIT" }, - "node_modules/addons-linter/node_modules/eslint/node_modules/minimatch": { - "version": "11.0.10", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.10.tgz", - "integrity": "sha512-L3/cjhQ5E6lft0VCp/2mO3Ic74RnutKy3rz7iGwp/6w1hKcO262g2rbfacFyw6eBig5OdI0nu5PpuA0/WQs9Tw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/nonrecursive-glob-match": "^1.1.0", - "brace-expansion": "^5.0.12" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/addons-linter/node_modules/file-entry-cache": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", @@ -2273,23 +2222,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/minimatch": { - "version": "11.0.8", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.8.tgz", - "integrity": "sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/nonrecursive-glob-match": "^1.1.0", - "brace-expansion": "^5.0.12" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/espree": { "version": "11.2.0", "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",