From 208f386c3dafa387b174e7375874ce01076aed30 Mon Sep 17 00:00:00 2001 From: Lovekesh Saxena Date: Fri, 2 Sep 2022 09:49:02 +0530 Subject: [PATCH] Accessibility of search on recent screen --- .../SearchFacetListComponentViewController.swift | 4 +++- .../Components/SystemSearchViewController.swift | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ContentApp/Modules/Advance Search/List with Search/SearchFacetListComponentViewController.swift b/ContentApp/Modules/Advance Search/List with Search/SearchFacetListComponentViewController.swift index b588ee32d..8347fdb25 100644 --- a/ContentApp/Modules/Advance Search/List with Search/SearchFacetListComponentViewController.swift +++ b/ContentApp/Modules/Advance Search/List with Search/SearchFacetListComponentViewController.swift @@ -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) { diff --git a/ContentApp/PresentationLayer/Components/SystemSearchViewController.swift b/ContentApp/PresentationLayer/Components/SystemSearchViewController.swift index 68fa6fe76..54297f352 100644 --- a/ContentApp/PresentationLayer/Components/SystemSearchViewController.swift +++ b/ContentApp/PresentationLayer/Components/SystemSearchViewController.swift @@ -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 }