mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 12:27:32 +01:00
Merge pull request #531 from vincode-io/Issue-519
added accessibility label for sidebar cell - Issue #519
This commit is contained in:
commit
e06daec8bc
@ -127,6 +127,16 @@ class SidebarCell : NSTableCellView {
|
||||
let layout = SidebarCellLayout(appearance: cellAppearance, cellSize: bounds.size, shouldShowImage: shouldShowImage, textField: textField, unreadCountView: unreadCountView)
|
||||
layoutWith(layout)
|
||||
}
|
||||
|
||||
override func accessibilityLabel() -> String? {
|
||||
if unreadCount > 0 {
|
||||
let unreadLabel = NSLocalizedString("unread", comment: "Unread label for accessiblity")
|
||||
return "\(name) \(unreadCount) \(unreadLabel)"
|
||||
} else {
|
||||
return name
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private extension SidebarCell {
|
||||
|
Loading…
x
Reference in New Issue
Block a user