Skip to content
TypeScript

fix(mobile): name iOS environment buttons for VoiceOver (#23740)

Victor Vogele9a11d4a8261
diff --git a/apps/mobile/src/features/connection/ConnectionEnvironmentRow.tsx b/apps/mobile/src/features/connection/ConnectionEnvironmentRow.tsx
index 1133e17113e..c7866cea6ce 100644
--- a/apps/mobile/src/features/connection/ConnectionEnvironmentRow.tsx
+++ b/apps/mobile/src/features/connection/ConnectionEnvironmentRow.tsx
@@ -283,6 +283,9 @@ export function ConnectionEnvironmentRow(props: {
)}
<Pressable
+ accessibilityRole="button"
+ accessibilityLabel="Reconnect environment"
+ accessibilityState={{ disabled: !enabled }}
className="h-[42px] w-[42px] items-center justify-center rounded-[14px] border border-input-border bg-input active:opacity-70 disabled:opacity-40"
disabled={!enabled}
onPress={() => props.onReconnect(props.environment.environmentId)}
@@ -296,6 +299,8 @@ export function ConnectionEnvironmentRow(props: {
</Pressable>
<Pressable
+ accessibilityRole="button"
+ accessibilityLabel="Remove environment"
className="h-[42px] w-[42px] items-center justify-center rounded-[14px] border border-danger-border bg-danger active:opacity-70"
onPress={() => props.onRemove(props.environment.environmentId)}
>