From cba3d3782d6775889773e24a2e4307feaae2d8ad Mon Sep 17 00:00:00 2001 From: Kris Date: Tue, 22 Sep 2020 17:26:03 -0400 Subject: [PATCH] A11Y: Add label to share link input (#10717) --- .../discourse/app/templates/components/share-panel.hbs | 2 +- .../discourse/app/templates/components/share-popup.hbs | 2 +- config/locales/client.en.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/components/share-panel.hbs b/app/assets/javascripts/discourse/app/templates/components/share-panel.hbs index 1f33acbe3ce..c309de1488d 100644 --- a/app/assets/javascripts/discourse/app/templates/components/share-panel.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/share-panel.hbs @@ -3,7 +3,7 @@
- {{textarea value=shareUrl class="topic-share-url"}} + {{d-textarea value=shareUrl class="topic-share-url" aria-label=(I18n "share.url")}}
{{#each sources as |source|}} diff --git a/app/assets/javascripts/discourse/app/templates/components/share-popup.hbs b/app/assets/javascripts/discourse/app/templates/components/share-popup.hbs index 4a40880ebf8..548f71e7d99 100644 --- a/app/assets/javascripts/discourse/app/templates/components/share-popup.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/share-popup.hbs @@ -7,7 +7,7 @@
- +
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index f231b9e6bee..2c6be84cc4f 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -138,6 +138,7 @@ en: twitter: "Share on Twitter" facebook: "Share on Facebook" email: "Send via email" + url: "Copy and share URL" action_codes: public_topic: "made this topic public %{when}"