A11Y: add aria-labels for flagging textareas (#19938)

This commit is contained in:
Kris 2023-01-24 09:49:15 -05:00 committed by GitHub
parent 7683b4bbfa
commit a57d6a0f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@
name="message"
class="flag-message"
placeholder={{this.customPlaceholder}}
aria-label={{i18n "flagging.notify_user_textarea_label"}}
@value={{this.message}}
/>
<div
@ -48,6 +49,7 @@
name="message"
class="flag-message"
placeholder={{this.customPlaceholder}}
aria-label={{i18n "flagging.notify_moderators_textarea_label"}}
@value={{this.message}}
/>
<div

View File

@ -3809,7 +3809,9 @@ en:
inappropriate: "It's Inappropriate"
spam: "It's Spam"
custom_placeholder_notify_user: "Be specific, be constructive, and always be kind."
notify_user_textarea_label: "Message for the user"
custom_placeholder_notify_moderators: "Let us know specifically what you are concerned about, and provide relevant links and examples where possible."
notify_moderators_textarea_label: "Message for the moderators"
custom_message:
at_least:
one: "enter at least %{count} character"