From a11869f8c55639705cb60b4b1c830750630944f0 Mon Sep 17 00:00:00 2001 From: Kris Date: Fri, 29 Sep 2023 09:33:45 -0400 Subject: [PATCH] A11Y: add aria-label to share copy button (#23706) --- app/assets/javascripts/discourse/app/components/copy-button.hbs | 1 + .../javascripts/discourse/app/components/modal/share-topic.hbs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/components/copy-button.hbs b/app/assets/javascripts/discourse/app/components/copy-button.hbs index 69ea019fc0d..620a20a017b 100644 --- a/app/assets/javascripts/discourse/app/components/copy-button.hbs +++ b/app/assets/javascripts/discourse/app/components/copy-button.hbs @@ -2,4 +2,5 @@ @icon={{this.copyIcon}} @action={{this.copy}} class={{this.copyClass}} + @ariaLabel={{this.ariaLabel}} /> \ No newline at end of file diff --git a/app/assets/javascripts/discourse/app/components/modal/share-topic.hbs b/app/assets/javascripts/discourse/app/components/modal/share-topic.hbs index 729f355e069..45c558e0019 100644 --- a/app/assets/javascripts/discourse/app/components/modal/share-topic.hbs +++ b/app/assets/javascripts/discourse/app/components/modal/share-topic.hbs @@ -27,7 +27,7 @@ @value={{this.url}} readonly={{true}} /> - +