Skip to content

Commit fc0ddcc

Browse files
Add FXIOS-11033 [Bookmarks Evolution] A11y button traits for tableview cells (#24086)
1 parent 7ce94a1 commit fc0ddcc

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

firefox-ios/Client/Frontend/Library/Bookmarks/BookmarksViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ class BookmarksViewController: SiteTableViewController,
507507
viewModel.accessoryView = contextButton
508508
}
509509

510+
cell.accessibilityTraits = .button
510511
cell.configure(viewModel: viewModel)
511512
cell.applyTheme(theme: currentTheme())
512513
return cell

firefox-ios/Client/Frontend/Library/Bookmarks/Edit Bookmark/EditBookmarkViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ class EditBookmarkViewController: UIViewController,
237237
let canShowAccessoryView = viewModel.shouldShowDisclosureIndicator(isFolderSelected: isFolderSelected)
238238
cell.accessoryType = canShowAccessoryView ? .checkmark : .none
239239
cell.selectionStyle = .default
240+
cell.accessibilityTraits = .button
240241
cell.customization = .regular
241242
cell.applyTheme(theme: theme)
242243
}

firefox-ios/Client/Frontend/Library/Bookmarks/Edit Folder/EditFolderViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ class EditFolderViewController: UIViewController,
207207
let canShowAccessoryView = viewModel.shouldShowDisclosureIndicator(isFolderSelected: isFolderSelected)
208208
cell.accessoryType = canShowAccessoryView ? .checkmark : .none
209209
cell.selectionStyle = .default
210+
cell.accessibilityTraits = .button
210211
cell.customization = .regular
211212
cell.applyTheme(theme: theme)
212213
}

0 commit comments

Comments
 (0)