Skip to content

Commit

Permalink
fix: add accessibility labels - WPB-16078 (#2545)
Browse files Browse the repository at this point in the history
  • Loading branch information
caldrian authored Feb 14, 2025
1 parent e809e57 commit e167cce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ struct SetBackupPasswordView: View {
.disabled(!viewModel.isPasswordValid)
.wireButtonStyle(.primary)
.padding()
.accessibilityIdentifier("back up now")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct ToggleablePasswordField: View {
.focused($isFocused)
.textContentType(.password)
.autocapitalization(.none)
.accessibilityIdentifier("password input")
} else {
SecureField(text: $password) {
Text(placeholder)
Expand All @@ -56,6 +57,7 @@ struct ToggleablePasswordField: View {
}
.focused($isFocused)
.textContentType(.password)
.accessibilityIdentifier("password input")
}

let accessibilityLabel = isPasswordVisible ? Labels.Password.Hide.label : Labels.Password.Show.label
Expand Down

0 comments on commit e167cce

Please sign in to comment.