From 21c24cf187618c3f6dc4ba9483dfc03f2ca30d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Du=C5=A1ek?= Date: Fri, 10 Jul 2015 23:01:54 +0200 Subject: [PATCH] Bug 1182612 - Search suggestions engine image does not have accessibility label --- Client/Frontend/Browser/SearchViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Client/Frontend/Browser/SearchViewController.swift b/Client/Frontend/Browser/SearchViewController.swift index e3e502e7da40..2b467f1b1838 100644 --- a/Client/Frontend/Browser/SearchViewController.swift +++ b/Client/Frontend/Browser/SearchViewController.swift @@ -487,6 +487,8 @@ extension SearchViewController: UITableViewDataSource { switch SearchListSection(rawValue: indexPath.section)! { case .SearchSuggestions: suggestionCell.imageView?.image = searchEngines.defaultEngine.image + suggestionCell.imageView?.isAccessibilityElement = true + suggestionCell.imageView?.accessibilityLabel = String(format: NSLocalizedString("Search suggestions from %@", tableName: "Search", comment: "Accessibility label for image of default search engine displayed left to the actual search suggestions from the engine. The parameter substituted for \"%@\" is the name of the search engine. E.g.: Search suggestions from Google"), searchEngines.defaultEngine.shortName) return suggestionCell case .BookmarksAndHistory: