mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 10:35:19 +00:00
AccessibilityId refactor WIP
This commit is contained in:
parent
399796bac3
commit
e5fd2c8cc0
@ -72,7 +72,7 @@ internal fun StartConversationScreen(
|
||||
ItemButton(
|
||||
textId = R.string.sessionInviteAFriend,
|
||||
icon = R.drawable.ic_invite_friend,
|
||||
Modifier.contentDescription(R.string.AccessibilityId_invite_friend_button),
|
||||
Modifier.contentDescription(R.string.AccessibilityId_sessionInviteAFriend),
|
||||
onClick = delegate::onInviteFriend
|
||||
)
|
||||
Column(
|
||||
|
@ -143,7 +143,7 @@ private fun EnterAccountId(
|
||||
BorderlessButtonWithIcon(
|
||||
text = stringResource(R.string.messageNewDescriptionMobile),
|
||||
modifier = Modifier
|
||||
.contentDescription(R.string.AccessibilityId_help_desk_link)
|
||||
.contentDescription(R.string.AccessibilityId_messageNewDescriptionMobile)
|
||||
.padding(horizontal = LocalDimensions.current.mediumSpacing)
|
||||
.fillMaxWidth(),
|
||||
style = LocalType.current.small,
|
||||
|
@ -65,7 +65,7 @@ internal fun SeedReminder(startRecoveryPasswordActivity: () -> Unit) {
|
||||
text = stringResource(R.string.theContinue),
|
||||
modifier = Modifier
|
||||
.align(Alignment.CenterVertically)
|
||||
.contentDescription(R.string.AccessibilityId_reveal_recovery_phrase_button),
|
||||
.contentDescription(R.string.AccessibilityId_recoveryPasswordBanner),
|
||||
onClick = startRecoveryPasswordActivity
|
||||
)
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ private fun RecoveryPassword(state: State, onChange: (String) -> Unit = {}, onCo
|
||||
SessionOutlinedTextField(
|
||||
text = state.recoveryPhrase,
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
contentDescription = stringResource(R.string.AccessibilityId_recoveryPhrase),
|
||||
contentDescription = stringResource(R.string.AccessibilityId_recoveryPasswordRestore),
|
||||
placeholder = stringResource(R.string.recoveryPasswordEnter),
|
||||
onChange = onChange,
|
||||
onContinue = onContinue,
|
||||
|
@ -23,10 +23,10 @@
|
||||
<string name="AccessibilityId_urlOpenBrowser">Open URL</string>
|
||||
<string name="AccessibilityId_onboardingTos">Terms of service button</string>
|
||||
<string name="AccessibilityId_onboardingPrivacy">Privacy policy button</string>
|
||||
<string name="AccessibilityId_recoveryPhrase">Recovery phrase input</string>
|
||||
<string name="AccessibilityId_reveal_recovery_phrase_button">Reveal recovery phrase button</string>
|
||||
<string name="AccessibilityId_help_desk_link">Help desk link</string>
|
||||
<string name="AccessibilityId_invite_friend_button">Invite friend button</string>
|
||||
<string name="AccessibilityId_recoveryPasswordEnter">Recovery phrase input</string>
|
||||
<string name="AccessibilityId_recoveryPasswordBanner">Reveal recovery phrase button</string>
|
||||
<string name="AccessibilityId_messageNewDescriptionMobile">Help desk link</string>
|
||||
<string name="AccessibilityId_sessionInviteAFriend">Invite friend button</string>
|
||||
<!-- Landing Page -->
|
||||
<string name="AccessibilityId_create_session_id">Create session ID</string>
|
||||
<string name="AccessibilityId_link_a_device">Link a device</string>
|
||||
|
Loading…
Reference in New Issue
Block a user