From f04c87334c2dfdda3be910f211cae2e637e6ad69 Mon Sep 17 00:00:00 2001 From: Johannes Klein Date: Fri, 29 Mar 2024 18:24:47 +0100 Subject: [PATCH] Add a11y prop to Images --- src/components/Search/Search.js | 2 ++ src/components/Settings/BlockedUser.js | 1 + src/components/Settings/MutedUser.js | 1 + src/components/Settings/PlaceSearchInput.js | 1 + src/components/Settings/Relationship.js | 1 + src/components/Settings/SettingsProfile.js | 1 + src/components/Settings/SettingsRelationships.js | 1 + src/components/Settings/UserSearchInput.js | 2 ++ 8 files changed, 10 insertions(+) diff --git a/src/components/Search/Search.js b/src/components/Search/Search.js index ca3a7cf50..4772b3eb1 100644 --- a/src/components/Search/Search.js +++ b/src/components/Search/Search.js @@ -50,6 +50,7 @@ const Search = (): React.Node => { source={imageUrl} style={imageStyles.squareImage} testID={`Search.${item.id}.photo`} + accessibilityIgnoresInvertColors /> {`${item.preferred_common_name} (${item.rank} ${item.name})`} @@ -67,6 +68,7 @@ const Search = (): React.Node => { source={{ uri: item.icon }} style={imageStyles.circularImage} testID={`Search.${item.login}.photo`} + accessibilityIgnoresInvertColors /> {`${item.login} (${item.name})`} diff --git a/src/components/Settings/BlockedUser.js b/src/components/Settings/BlockedUser.js index 24df0722f..426171874 100644 --- a/src/components/Settings/BlockedUser.js +++ b/src/components/Settings/BlockedUser.js @@ -21,6 +21,7 @@ const BlockedUser = ( { user, unblockUser }:Props ): Node => ( {user.login} diff --git a/src/components/Settings/MutedUser.js b/src/components/Settings/MutedUser.js index f5c847486..8cbfc3dcc 100644 --- a/src/components/Settings/MutedUser.js +++ b/src/components/Settings/MutedUser.js @@ -21,6 +21,7 @@ const MutedUser = ( { user, unmuteUser }: Props ): Node => ( {user.login} diff --git a/src/components/Settings/PlaceSearchInput.js b/src/components/Settings/PlaceSearchInput.js index 472dbf482..216eff88a 100644 --- a/src/components/Settings/PlaceSearchInput.js +++ b/src/components/Settings/PlaceSearchInput.js @@ -73,6 +73,7 @@ const PlaceSearchInput = ( { placeId, onPlaceChanged } ): React.Node => { style={viewStyles.clearSearch} resizeMode="contain" source={require( "images/clear.png" )} + accessibilityIgnoresInvertColors /> diff --git a/src/components/Settings/Relationship.js b/src/components/Settings/Relationship.js index 651dd09db..07ba93a0d 100644 --- a/src/components/Settings/Relationship.js +++ b/src/components/Settings/Relationship.js @@ -28,6 +28,7 @@ const Relationship = ( { {relationship.friendUser.login} diff --git a/src/components/Settings/SettingsProfile.js b/src/components/Settings/SettingsProfile.js index 7dac3f55d..f17f26ec9 100644 --- a/src/components/Settings/SettingsProfile.js +++ b/src/components/Settings/SettingsProfile.js @@ -39,6 +39,7 @@ const SettingsProfile = ( { settings, onSettingsModified }: SettingsProps ): Nod