A11Y: Include username in aria-label of post region
I think the author of a post is a critical piece of information that should be communicated right when the post region is reached.
This commit is contained in:
parent
e7c16bc49a
commit
ef66b3fd40
|
@ -652,6 +652,7 @@ createWidget("post-article", {
|
||||||
return {
|
return {
|
||||||
"aria-label": I18n.t("share.post", {
|
"aria-label": I18n.t("share.post", {
|
||||||
postNumber: attrs.post_number,
|
postNumber: attrs.post_number,
|
||||||
|
username: attrs.username,
|
||||||
}),
|
}),
|
||||||
role: "region",
|
role: "region",
|
||||||
"data-post-id": attrs.id,
|
"data-post-id": attrs.id,
|
||||||
|
|
|
@ -136,7 +136,7 @@ en:
|
||||||
to_placeholder: "to date"
|
to_placeholder: "to date"
|
||||||
share:
|
share:
|
||||||
topic_html: 'Topic: <span class="topic-title">%{topicTitle}</span>'
|
topic_html: 'Topic: <span class="topic-title">%{topicTitle}</span>'
|
||||||
post: "post #%{postNumber}"
|
post: "post #%{postNumber} by @%{username}"
|
||||||
close: "close"
|
close: "close"
|
||||||
twitter: "Share on Twitter"
|
twitter: "Share on Twitter"
|
||||||
facebook: "Share on Facebook"
|
facebook: "Share on Facebook"
|
||||||
|
|
Loading…
Reference in New Issue