Skip to content

Commit

Permalink
Merge pull request #708 from dusek/accessibility-bug1182612-searcheng…
Browse files Browse the repository at this point in the history
…ineimage

Bug 1182612 - Search suggestions engine image does not have accessibility label
  • Loading branch information
thebnich committed Jul 10, 2015
2 parents ddea35a + 21c24cf commit 4b8868d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Client/Frontend/Browser/SearchViewController.swift
Expand Up @@ -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:
Expand Down

0 comments on commit 4b8868d

Please sign in to comment.