From 5b73322c412d3a6b82a3b54d269dd28aad36a58e Mon Sep 17 00:00:00 2001 From: Kris Date: Wed, 10 Jul 2024 14:15:14 -0400 Subject: [PATCH] A11Y: improve topic entrance aria-label, title (#27842) Co-authored-by: Jarek Radosz --- .../discourse/app/components/topic-entrance.hbs | 12 ++++++++++-- .../app/components/topic-list/topic-entrance.gjs | 13 +++++++++++-- .../app/components/topic-timeline/container.hbs | 2 +- .../app/components/topic-timeline/container.js | 2 +- config/locales/client.en.yml | 6 ++++-- 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/topic-entrance.hbs b/app/assets/javascripts/discourse/app/components/topic-entrance.hbs index fc024c8c7b2..3bc79368744 100644 --- a/app/assets/javascripts/discourse/app/components/topic-entrance.hbs +++ b/app/assets/javascripts/discourse/app/components/topic-entrance.hbs @@ -1,6 +1,10 @@ {{d-icon "step-backward"}} @@ -9,7 +13,11 @@ {{html-safe this.bottomDate}} diff --git a/app/assets/javascripts/discourse/app/components/topic-list/topic-entrance.gjs b/app/assets/javascripts/discourse/app/components/topic-list/topic-entrance.gjs index af11aa2fb3f..98b51804a10 100644 --- a/app/assets/javascripts/discourse/app/components/topic-list/topic-entrance.gjs +++ b/app/assets/javascripts/discourse/app/components/topic-list/topic-entrance.gjs @@ -6,6 +6,7 @@ import { service } from "@ember/service"; import { htmlSafe } from "@ember/template"; import DiscourseURL from "discourse/lib/url"; import icon from "discourse-common/helpers/d-icon"; +import i18n from "discourse-common/helpers/i18n"; import I18n from "discourse-i18n"; import DMenu from "float-kit/components/d-menu"; @@ -80,7 +81,11 @@ export default class TopicEntrance extends Component {