mirror of
https://github.com/bitwarden/android.git
synced 2026-10-22 02:53:19 -05:00
[PM-38918] fix: PM-38644, UI/UX inconsistency: Passport number in Identity items is not a hidden field (#7053)
This commit is contained in:
1 parent
453ade7cca
commit
cc9b7d3edf
1 file changed
+13
-5
+13
-5
@@ -163,13 +163,21 @@ fun VaultItemIdentityContent(
|
||||
}
|
||||
identityState.passportNumber?.let { passportNumber ->
|
||||
item(key = "passportNumber") {
|
||||
IdentityCopyField(
|
||||
BitwardenPasswordField(
|
||||
label = stringResource(id = BitwardenString.passport_number),
|
||||
value = passportNumber,
|
||||
copyContentDescription = stringResource(id = BitwardenString.copy_passport_number),
|
||||
textFieldTestTag = "IdentityPassportNumberEntry",
|
||||
copyActionTestTag = "IdentityCopyPassportNumberButton",
|
||||
onCopyClick = vaultIdentityItemTypeHandlers.onCopyPassportNumberClick,
|
||||
onValueChange = {},
|
||||
readOnly = true,
|
||||
actions = {
|
||||
BitwardenStandardIconButton(
|
||||
vectorIconRes = BitwardenDrawable.ic_copy,
|
||||
contentDescription = stringResource(id = BitwardenString.copy_passport_number),
|
||||
onClick = vaultIdentityItemTypeHandlers.onCopyPassportNumberClick,
|
||||
modifier = Modifier.testTag(tag = "IdentityCopyPassportNumberButton"),
|
||||
)
|
||||
},
|
||||
passwordFieldTestTag = "IdentityPassportNumberEntry",
|
||||
showPasswordTestTag = "IdentityViewPassportNumberButton",
|
||||
cardStyle = identityState
|
||||
.propertyList
|
||||
.toListItemCardStyle(
|
||||
|
||||
Reference in new issue
Block a user