Add a11y label for starred status on master timeline

This commit is contained in:
Rizwan Mohamed Ibrahim 2020-07-14 18:08:07 +05:30
parent 1427e1d8c6
commit 1a3bbf7dbf
No known key found for this signature in database
GPG Key ID: D5BEE468D448BCC5
1 changed files with 3 additions and 2 deletions

View File

@ -237,8 +237,9 @@ private extension MasterTimelineTableViewCell {
}
func updateAccessiblityLabel() {
var label = cellData.read ? "" : "\(NSLocalizedString("Unread", comment: "Unread")), "
label += "\(cellData.feedName), \(cellData.title), \(cellData.summary), \(cellData.dateString)"
let starredStatus = cellData.starred ? "\(NSLocalizedString("Starred", comment: "Favourites article for accessibility")), " : ""
let unreadStatus = cellData.read ? "" : "\(NSLocalizedString("Unread", comment: "Unread")), "
let label = starredStatus + unreadStatus + "\(cellData.feedName), \(cellData.title), \(cellData.summary), \(cellData.dateString)"
accessibilityLabel = label
}