improve accessibility for menu header

This commit is contained in:
Abbey Campbell
2025-12-04 11:44:14 -08:00
parent 275c5acad8
commit f66f0c51d8
4 changed files with 9 additions and 3 deletions

View File

@@ -160,7 +160,13 @@ const Menu = ( ) => {
{/* Header */}
<Pressable
testID="menu-header"
accessible
accessibilityRole="button"
accessibilityHint={
currentUser
? t( "Navigates-to-user-profile" )
: t( "Navigates-to-log-in-screen" )
}
className="px-[26px] pt-[68px] pb-[31px] border-b border-lightGray"
onPress={( ) => {
if ( !currentUser ) {

View File

@@ -751,6 +751,7 @@ Navigates-to-AI-camera = Navigates to AI camera
Navigates-to-bulk-importer = Navigates to bulk importer
Navigates-to-camera = Navigates to camera
Navigates-to-explore = Navigates to explore
Navigates-to-log-in-screen = Navigates to log in screen
Navigates-to-main-menu = Navigates to main menu.
Navigates-to-match-screen = Navigates to match screen
Navigates-to-notifications = Navigates to notifications
@@ -1141,7 +1142,6 @@ Show-observation-options = Show observation options.
Showing-offline-search-results--taxa = Showing offline search results. To search for more species, try again when connected to the Internet.
# Label for button that shows identification suggestions
Shows-identification-suggestions = Shows identification suggestions
Shows-iNaturalist-bird-logo = Shows iNaturalist bird logo.
# Accessibility hint for button that shows observation creation options
Shows-observation-creation-options = Shows observation creation options
# Accessibility label for a button that allows user to sign in with their Apple account

View File

@@ -436,6 +436,7 @@
"Navigates-to-bulk-importer": "Navigates to bulk importer",
"Navigates-to-camera": "Navigates to camera",
"Navigates-to-explore": "Navigates to explore",
"Navigates-to-log-in-screen": "Navigates to log in screen",
"Navigates-to-main-menu": "Navigates to main menu.",
"Navigates-to-match-screen": "Navigates to match screen",
"Navigates-to-notifications": "Navigates to notifications",
@@ -716,7 +717,6 @@
"Show-observation-options": "Show observation options.",
"Showing-offline-search-results--taxa": "Showing offline search results. To search for more species, try again when connected to the Internet.",
"Shows-identification-suggestions": "Shows identification suggestions",
"Shows-iNaturalist-bird-logo": "Shows iNaturalist bird logo.",
"Shows-observation-creation-options": "Shows observation creation options",
"Sign-in-with-Apple": "Sign in with Apple",
"Sign-in-with-Apple-Failed": "Sign in with Apple Failed",

View File

@@ -751,6 +751,7 @@ Navigates-to-AI-camera = Navigates to AI camera
Navigates-to-bulk-importer = Navigates to bulk importer
Navigates-to-camera = Navigates to camera
Navigates-to-explore = Navigates to explore
Navigates-to-log-in-screen = Navigates to log in screen
Navigates-to-main-menu = Navigates to main menu.
Navigates-to-match-screen = Navigates to match screen
Navigates-to-notifications = Navigates to notifications
@@ -1141,7 +1142,6 @@ Show-observation-options = Show observation options.
Showing-offline-search-results--taxa = Showing offline search results. To search for more species, try again when connected to the Internet.
# Label for button that shows identification suggestions
Shows-identification-suggestions = Shows identification suggestions
Shows-iNaturalist-bird-logo = Shows iNaturalist bird logo.
# Accessibility hint for button that shows observation creation options
Shows-observation-creation-options = Shows observation creation options
# Accessibility label for a button that allows user to sign in with their Apple account