Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add accessibility identifiers to 'submit' and 'cancel' survey buttons #1057

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ extension Survey {
// from getting truncated, for example for large
// dynamic font types.
$0.titleLabel?.lineBreakMode = .byWordWrapping
$0.accessibilityIdentifier = "survey_cancel_button"
}
let submitButton = UIButton(type: .custom).make {
$0.setTitle(Localization.General.submit, for: .normal)
$0.titleLabel?.numberOfLines = 0
$0.titleLabel?.lineBreakMode = .byWordWrapping
$0.accessibilityIdentifier = "survey_submit_button"
}
lazy var buttonStackView = UIStackView.make(.horizontal, spacing: 16)(
cancelButton,
Expand Down
Loading