Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(accessibility): correct control announcements and sidebar traversal #13491

Mergedblinding-pixels(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/13491/headmerged by gabrielelpidio(GitHub profile, opens in a new tab) View on GitHub

Showing 9 changed files with 53 additions and 3 deletions (loading 6).

x
0 of 9 viewed, 9 left
42 additions and 0 deletionsapps/mobile/src/features/connection/ConnectionFormField.test.tsxAdded
View file
@@ -0,0 +1,42 @@
+import type { ReactNode } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
+import { describe, expect, it, vi } from "vite-plus/test";
+​
+vi.mock("react-native", () => ({
+ View: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+}));
+vi.mock("../../components/AppText", () => ({
+ AppText: ({
+ accessibilityElementsHidden,
+ importantForAccessibility,
+ children,
+ }: {
+ accessibilityElementsHidden?: boolean;
+ importantForAccessibility?: string;
+ children: ReactNode;
+ }) => (
+ <span
+ aria-hidden={
+ accessibilityElementsHidden || importantForAccessibility === "no-hide-descendants"
+ }
+ >
+ {children}
+ </span>
+ ),
+ AppTextInput: ({ accessibilityLabel }: { accessibilityLabel?: string }) => (
+ <input aria-label={accessibilityLabel} />
+ ),
+}));
+​