Skip to content

Commit

Permalink
Accessibility of search on recent screen
Browse files Browse the repository at this point in the history
  • Loading branch information
gl-lovekesh committed Sep 2, 2022
1 parent 6a96dd3 commit 208f386
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class SearchFacetListComponentViewController: SystemThemableViewController {
heightSearchView.constant = facetViewModel.heightAndAlphaOfSearchView().height
searchView.alpha = facetViewModel.heightAndAlphaOfSearchView().alpha
applyButton.accessibilityIdentifier = "applyActionButton-facetComponent"
resetButton.accessibilityIdentifier = "resetActionButton-facetComponent"
resetButton.accessibilityIdentifier = "resetActionButton-facetComponent"
searchView.accessibilityTraits = .button

}

override func viewWillAppear(_ animated: Bool) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ class SystemSearchViewController: SystemThemableViewController {
searchController.searchBar.smartQuotesType = .no
searchController.searchBar.isAccessibilityElement = true
searchController.searchBar.accessibilityIdentifier = "searchBar"
searchController.searchBar.accessibilityTraits = .searchField
searchController.searchBar.accessibilityLabel = LocalizationConstants.AdvanceSearch.searchPlaceholder

return searchController
}

Expand Down

0 comments on commit 208f386

Please sign in to comment.