Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(web): keep key hints out of accessible names

Andrej23b07b493154
diff --git a/apps/web/src/components/common/option-menu/option-menu.tsx b/apps/web/src/components/common/option-menu/option-menu.tsx
index 82395908b..1f3cfa81f 100644
--- a/apps/web/src/components/common/option-menu/option-menu.tsx
+++ b/apps/web/src/components/common/option-menu/option-menu.tsx
@@ -112,7 +112,10 @@ export function OptionMenu({
) : (
!query &&
index < 9 && (
- <span className="shrink-0 text-muted-foreground text-xs tabular-nums">
+ <span
+ aria-hidden="true"
+ className="shrink-0 text-muted-foreground text-xs tabular-nums"
+ >
{index + 1}
</span>
)
diff --git a/apps/web/src/components/task/properties/property-value.tsx b/apps/web/src/components/task/properties/property-value.tsx
index 3f0495581..5c1e42b2f 100644
--- a/apps/web/src/components/task/properties/property-value.tsx
+++ b/apps/web/src/components/task/properties/property-value.tsx
@@ -24,7 +24,10 @@ export function PropertyValue({
>
{children}
{shortcutId && (
- <span className="ms-auto hidden shrink-0 opacity-0 transition-opacity group-hover/value:opacity-100 sm:inline-flex">
+ <span
+ aria-hidden="true"
+ className="ms-auto hidden shrink-0 opacity-0 transition-opacity group-hover/value:opacity-100 sm:inline-flex"
+ >
<ShortcutKeys id={shortcutId} />
</span>
)}
diff --git a/scripts/ci/browser.mjs b/scripts/ci/browser.mjs
index dbdeec0ab..171000f09 100644
--- a/scripts/ci/browser.mjs
+++ b/scripts/ci/browser.mjs
@@ -113,7 +113,7 @@ try {
new URL(response.url()).pathname === `/api/task/status/${task.id}` &&
response.request().method() === "PUT",
),
- page.getByRole("button", { name: /^In Progress/ }).click(),
+ page.getByRole("option", { name: /^In Progress/ }).click(),
]);
assert.ok(changedStatus.ok());
// The other tab must update through WebSocket-driven query invalidation, without a reload.