Skip to content

Fix last-post screen reader label - #192

Open
karelpak1 wants to merge 1 commit into
avatharbe:develop33from
karelpak1:fix/recent-topics-last-post-link
Open

Fix last-post screen reader label#192
karelpak1 wants to merge 1 commit into
avatharbe:develop33from
karelpak1:fix/recent-topics-last-post-link

Conversation

@karelpak1

Copy link
Copy Markdown

Use the correct localized label for the last-post link in the recent topics template.

The issue was noticed when browsing the forum with the text-based Links browser. While the last-post icon is visible and clickable in graphical browsers, Links does not render the icon itself and relies on the link's textual content. The existing VIEW_LATEST_POST variable is undefined in this template, which leaves the sr-only label empty and makes the link effectively invisible in Links and potentially inaccessible to assistive technologies.

Use lang('GOTO_LAST_POST') instead, matching the link's existing title attribute and ensuring that it has a meaningful accessible name such as "Go to last post".

Use the correct accessible label for the last-post link in the recent topics template. This prevents an undefined variable from being announced to screen readers and ensures the link reads as 'Go to last post'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant