AccessibilityId refactor WIP

This commit is contained in:
alansley 2024-08-07 09:22:14 +10:00
parent 399796bac3
commit e5fd2c8cc0
5 changed files with 8 additions and 8 deletions

View File

@ -72,7 +72,7 @@ internal fun StartConversationScreen(
ItemButton( ItemButton(
textId = R.string.sessionInviteAFriend, textId = R.string.sessionInviteAFriend,
icon = R.drawable.ic_invite_friend, icon = R.drawable.ic_invite_friend,
Modifier.contentDescription(R.string.AccessibilityId_invite_friend_button), Modifier.contentDescription(R.string.AccessibilityId_sessionInviteAFriend),
onClick = delegate::onInviteFriend onClick = delegate::onInviteFriend
) )
Column( Column(

View File

@ -143,7 +143,7 @@ private fun EnterAccountId(
BorderlessButtonWithIcon( BorderlessButtonWithIcon(
text = stringResource(R.string.messageNewDescriptionMobile), text = stringResource(R.string.messageNewDescriptionMobile),
modifier = Modifier modifier = Modifier
.contentDescription(R.string.AccessibilityId_help_desk_link) .contentDescription(R.string.AccessibilityId_messageNewDescriptionMobile)
.padding(horizontal = LocalDimensions.current.mediumSpacing) .padding(horizontal = LocalDimensions.current.mediumSpacing)
.fillMaxWidth(), .fillMaxWidth(),
style = LocalType.current.small, style = LocalType.current.small,

View File

@ -65,7 +65,7 @@ internal fun SeedReminder(startRecoveryPasswordActivity: () -> Unit) {
text = stringResource(R.string.theContinue), text = stringResource(R.string.theContinue),
modifier = Modifier modifier = Modifier
.align(Alignment.CenterVertically) .align(Alignment.CenterVertically)
.contentDescription(R.string.AccessibilityId_reveal_recovery_phrase_button), .contentDescription(R.string.AccessibilityId_recoveryPasswordBanner),
onClick = startRecoveryPasswordActivity onClick = startRecoveryPasswordActivity
) )
} }

View File

@ -100,7 +100,7 @@ private fun RecoveryPassword(state: State, onChange: (String) -> Unit = {}, onCo
SessionOutlinedTextField( SessionOutlinedTextField(
text = state.recoveryPhrase, text = state.recoveryPhrase,
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
contentDescription = stringResource(R.string.AccessibilityId_recoveryPhrase), contentDescription = stringResource(R.string.AccessibilityId_recoveryPasswordRestore),
placeholder = stringResource(R.string.recoveryPasswordEnter), placeholder = stringResource(R.string.recoveryPasswordEnter),
onChange = onChange, onChange = onChange,
onContinue = onContinue, onContinue = onContinue,

View File

@ -23,10 +23,10 @@
<string name="AccessibilityId_urlOpenBrowser">Open URL</string> <string name="AccessibilityId_urlOpenBrowser">Open URL</string>
<string name="AccessibilityId_onboardingTos">Terms of service button</string> <string name="AccessibilityId_onboardingTos">Terms of service button</string>
<string name="AccessibilityId_onboardingPrivacy">Privacy policy button</string> <string name="AccessibilityId_onboardingPrivacy">Privacy policy button</string>
<string name="AccessibilityId_recoveryPhrase">Recovery phrase input</string> <string name="AccessibilityId_recoveryPasswordEnter">Recovery phrase input</string>
<string name="AccessibilityId_reveal_recovery_phrase_button">Reveal recovery phrase button</string> <string name="AccessibilityId_recoveryPasswordBanner">Reveal recovery phrase button</string>
<string name="AccessibilityId_help_desk_link">Help desk link</string> <string name="AccessibilityId_messageNewDescriptionMobile">Help desk link</string>
<string name="AccessibilityId_invite_friend_button">Invite friend button</string> <string name="AccessibilityId_sessionInviteAFriend">Invite friend button</string>
<!-- Landing Page --> <!-- Landing Page -->
<string name="AccessibilityId_create_session_id">Create session ID</string> <string name="AccessibilityId_create_session_id">Create session ID</string>
<string name="AccessibilityId_link_a_device">Link a device</string> <string name="AccessibilityId_link_a_device">Link a device</string>