Fix content descriptions on app bars

pull/168/head
Caren Chang 2 years ago
parent 1733939841
commit ef90223495

@ -138,11 +138,11 @@ fun ForYouScreen(
titleRes = R.string.top_app_bar_title, titleRes = R.string.top_app_bar_title,
navigationIcon = NiaIcons.Search, navigationIcon = NiaIcons.Search,
navigationIconContentDescription = stringResource( navigationIconContentDescription = stringResource(
id = R.string.top_app_bar_navigation_button_content_desc id = R.string.for_you_top_app_bar_navigation_button_content_desc
), ),
actionIcon = NiaIcons.AccountCircle, actionIcon = NiaIcons.AccountCircle,
actionIconContentDescription = stringResource( actionIconContentDescription = stringResource(
id = R.string.top_app_bar_navigation_button_content_desc id = R.string.for_you_top_app_bar_action_button_content_desc
), ),
colors = TopAppBarDefaults.centerAlignedTopAppBarColors( colors = TopAppBarDefaults.centerAlignedTopAppBarColors(
containerColor = Color.Transparent containerColor = Color.Transparent

@ -24,8 +24,8 @@
<string name="onboarding_guidance_title">What are you interested in?</string> <string name="onboarding_guidance_title">What are you interested in?</string>
<string name="onboarding_guidance_subtitle">Updates from topics you follow will appear here. Follow some things to get started.</string> <string name="onboarding_guidance_subtitle">Updates from topics you follow will appear here. Follow some things to get started.</string>
<string name="top_app_bar_title">Now in Android</string> <string name="top_app_bar_title">Now in Android</string>
<string name="top_app_bar_action_button_content_desc">My account</string> <string name="for_you_top_app_bar_action_button_content_desc">My account</string>
<string name="top_app_bar_navigation_button_content_desc">Search</string> <string name="for_you_top_app_bar_navigation_button_content_desc">Search</string>
<!-- Authors--> <!-- Authors-->
<string name="following">You are following</string> <string name="following">You are following</string>

@ -87,11 +87,11 @@ fun InterestsScreen(
titleRes = R.string.interests, titleRes = R.string.interests,
navigationIcon = NiaIcons.Search, navigationIcon = NiaIcons.Search,
navigationIconContentDescription = stringResource( navigationIconContentDescription = stringResource(
id = R.string.top_app_bar_navigation_button_content_desc id = R.string.interests_top_app_bar_navigation_button_content_desc
), ),
actionIcon = NiaIcons.MoreVert, actionIcon = NiaIcons.MoreVert,
actionIconContentDescription = stringResource( actionIconContentDescription = stringResource(
id = R.string.top_app_bar_navigation_button_content_desc id = R.string.interests_top_app_bar_action_button_content_desc
), ),
colors = TopAppBarDefaults.centerAlignedTopAppBarColors( colors = TopAppBarDefaults.centerAlignedTopAppBarColors(
containerColor = Color.Transparent containerColor = Color.Transparent

@ -22,6 +22,6 @@
<string name="interests_empty_header">"No available data"</string> <string name="interests_empty_header">"No available data"</string>
<string name="interests_card_follow_button_content_desc">Follow interest button</string> <string name="interests_card_follow_button_content_desc">Follow interest button</string>
<string name="interests_card_unfollow_button_content_desc">Unfollow interest button</string> <string name="interests_card_unfollow_button_content_desc">Unfollow interest button</string>
<string name="top_app_bar_action_button_content_desc">Menu</string> <string name="interests_top_app_bar_action_button_content_desc">Menu</string>
<string name="top_app_bar_navigation_button_content_desc">Search</string> <string name="interests_top_app_bar_navigation_button_content_desc">Search</string>
</resources> </resources>

Loading…
Cancel
Save