Merge pull request #516 from j-f1/sidebar-a11y

Mark sidebar cells as buttons
This commit is contained in:
Nathan Mattes 2022-11-08 16:35:28 +01:00 committed by GitHub
commit 98d2a8da52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ extension SidebarViewModel {
cell.setNeedsUpdateConfiguration() cell.setNeedsUpdateConfiguration()
cell.isAccessibilityElement = true cell.isAccessibilityElement = true
cell.accessibilityLabel = item.title cell.accessibilityLabel = item.title
cell.accessibilityTraits.insert(.button)
} }
// header // header