mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 14:40:22 +00:00
Add accessibility labels for MainToolbar.
This commit is contained in:
@@ -224,7 +224,7 @@ private fun SearchToolbar(
|
||||
) {
|
||||
Icon(
|
||||
imageVector = ImageVector.vectorResource(R.drawable.symbol_arrow_start_24),
|
||||
contentDescription = null
|
||||
contentDescription = stringResource(R.string.MainToolbar__close_search_content_description)
|
||||
)
|
||||
}
|
||||
},
|
||||
@@ -400,7 +400,7 @@ private fun TooltipOverflowButton(
|
||||
) {
|
||||
Icon(
|
||||
imageVector = ImageVector.vectorResource(R.drawable.symbol_more_vertical),
|
||||
contentDescription = null
|
||||
contentDescription = stringResource(R.string.MainToolbar__more_options_content_description)
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -419,7 +419,7 @@ private fun NotificationProfileAction(
|
||||
// TODO [alex] - Add proper icon (cannot utilize layer-list)
|
||||
Image(
|
||||
painter = painterResource(R.drawable.ic_moon_24),
|
||||
contentDescription = null
|
||||
contentDescription = stringResource(R.string.MainToolbar__notification_profile_content_description)
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -436,7 +436,7 @@ private fun ProxyAction(
|
||||
) {
|
||||
Image(
|
||||
imageVector = ImageVector.vectorResource(state.proxyState.icon),
|
||||
contentDescription = null
|
||||
contentDescription = stringResource(R.string.MainToolbar__proxy_content_description)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8431,5 +8431,14 @@
|
||||
<!-- No backup to Restore tonal cta to skip restore -->
|
||||
<string name="NoBackupToRestore_skip_restore">Skip restore</string>
|
||||
|
||||
<!-- Accessibility label for close search button in MainToolbar -->
|
||||
<string name="MainToolbar__close_search_content_description">Close search</string>
|
||||
<!-- Accessibility label for more options button in MainToolbar -->
|
||||
<string name="MainToolbar__more_options_content_description">More options</string>
|
||||
<!-- Accessibility label for more options button in MainToolbar -->
|
||||
<string name="MainToolbar__notification_profile_content_description">Notification Profile</string>
|
||||
<!-- Accessibility label for more options button in MainToolbar -->
|
||||
<string name="MainToolbar__proxy_content_description">Proxy</string>
|
||||
|
||||
<!-- EOF -->
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user