1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 19:04:29 +02:00

[A11Y] Improve accessibility for discussion reply count on post stream (#3090)

* Add class to remove all UA styles from a button

* Improve classList utilisation

* Simplify JSX

* Use classlist instead of concatenation

* Fix reply count focusable when not acting as a button

* Add SR only class

* Add new reply count translations

* Use cleaner translations

* Remove unused import

* Add missing new line

* Delete Accessibility.less

* Use existing `.visually-hidden` class

* Format

* Fix locale formatting
This commit is contained in:
David Wheatley
2021-10-27 22:59:17 +02:00
committed by GitHub
parent 9e8a01d82b
commit de27001f63
3 changed files with 80 additions and 31 deletions

View File

@@ -326,9 +326,10 @@ core:
discussion_list:
empty_text: It looks as though there are no discussions here.
load_more_button: => core.ref.load_more
mark_as_read_tooltip: Mark as Read
replied_text: "{username} replied {ago}"
started_text: "{username} started {ago}"
total_replies_a11y_label: "{count, plural, one {# reply} other {# replies}}"
unread_replies_a11y_label: "{count, plural, one {# unread reply} other {# unread replies}}. Mark unread {count, plural, one {reply} other {replies}} as read."
# These translations are used in the Forgot Password modal dialog.
forgot_password: