Skip to content

Commit

Permalink
DON-335: Add accessibility identifiers to PlaceSelector elements (#1934)
Browse files Browse the repository at this point in the history
* DON-335: Neccessary changes

* Fix conflict

* Reduce changes

---------

Co-authored-by: Yura Reutskiy <yurareutskiy@skyscanner.net>
  • Loading branch information
yurareutskiy and Yura Reutskiy committed Apr 17, 2024
1 parent ffffbb9 commit 552feb4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -63,8 +63,8 @@ public struct BPKSearchInputSummary: View {
.foregroundColor(state.textColor)
.disabled(state.isDisabled)
.focused($focused)
.accessibilityElement(children: .combine)
.accessibilityAddTraits(.isSearchField)
.accessibilityLabel(placeholder)
accessory
}
.frame(maxWidth: .infinity, minHeight: 48.0)
Expand All @@ -82,10 +82,10 @@ public struct BPKSearchInputSummary: View {
BPKIconView(icon.icon)
.foregroundColor(icon.color)
}
.opacity(text.isEmpty ? 0.0 : 1.0)
.accessibilityElement(children: .ignore)
.accessibilityLabel(accessibilityLabel)
.accessibilityAddTraits(.isButton)
.opacity(text.isEmpty ? 0.0 : 1.0)
} else {
BPKIconView(icon.icon)
.foregroundColor(icon.color)
Expand Down

0 comments on commit 552feb4

Please sign in to comment.