Skip to content

Leave the unread bar out of the message count for screen readers - #31218

Open
rezabakhshilaktasaraei wants to merge 2 commits into
telegramdesktop:devfrom
rezabakhshilaktasaraei:set-position-unread-bar
Open

Leave the unread bar out of the message count for screen readers#31218
rezabakhshilaktasaraei wants to merge 2 commits into
telegramdesktop:devfrom
rezabakhshilaktasaraei:set-position-unread-bar

Conversation

@rezabakhshilaktasaraei

Copy link
Copy Markdown
Contributor

Depends on #31211 and builds on top of it: that PR exposes the unread bar as a separator, this one keeps it out of the "x of y" a screen reader announces for the messages around it.

With desktop-app/lib_ui#359 a painted list item reports its position within its set, by default its index among all rows. The unread bar is not a message, so both message lists override that: the bar itself reports no position, and the messages are numbered without counting it, so the first unread message is "5 of 20" whether or not the bar sits above it.

Needs desktop-app/lib_ui#359 (and desktop-app/patches#265 for the Qt side of it).

Tested with NVDA on Windows 10: arrowing through a chat with unread messages announces every message with its number and the total, the numbers do not skip across the bar, and the bar is still announced as "Unread messages, separator" with no position of its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant