Skip to content

Commit

Permalink
Add FXIOS-11033 [Bookmarks Evolution] A11y button traits for tablevie…
Browse files Browse the repository at this point in the history
…w cells (#24086)
  • Loading branch information
MattLichtenstein authored Jan 14, 2025
1 parent 7ce94a1 commit fc0ddcc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ class BookmarksViewController: SiteTableViewController,
viewModel.accessoryView = contextButton
}

cell.accessibilityTraits = .button
cell.configure(viewModel: viewModel)
cell.applyTheme(theme: currentTheme())
return cell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class EditBookmarkViewController: UIViewController,
let canShowAccessoryView = viewModel.shouldShowDisclosureIndicator(isFolderSelected: isFolderSelected)
cell.accessoryType = canShowAccessoryView ? .checkmark : .none
cell.selectionStyle = .default
cell.accessibilityTraits = .button
cell.customization = .regular
cell.applyTheme(theme: theme)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ class EditFolderViewController: UIViewController,
let canShowAccessoryView = viewModel.shouldShowDisclosureIndicator(isFolderSelected: isFolderSelected)
cell.accessoryType = canShowAccessoryView ? .checkmark : .none
cell.selectionStyle = .default
cell.accessibilityTraits = .button
cell.customization = .regular
cell.applyTheme(theme: theme)
}
Expand Down

0 comments on commit fc0ddcc

Please sign in to comment.