From 92bbbbe6d7716fb430a0b5613089348600818502 Mon Sep 17 00:00:00 2001 From: Chad Lavimoniere <clavimoniere@gitlab.com> Date: Tue, 4 Mar 2025 10:34:35 -0500 Subject: [PATCH] Ensure docs and config links on admin dashboard are accessible Changelog: fixed --- app/helpers/dashboard_helper.rb | 7 ++++++- locale/gitlab.pot | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb index d97a33cfdfa21..db41fa60f8ddd 100644 --- a/app/helpers/dashboard_helper.rb +++ b/app/helpers/dashboard_helper.rb @@ -20,7 +20,11 @@ def feature_entry(title, href: nil, enabled: true, doc_href: nil, last: false, c if href.present? concat(render(Pajamas::ButtonComponent.new(icon: 'settings', category: :tertiary, size: :small, href: href, - button_options: { title: _('Configure'), class: 'gl-ml-2 has-tooltip', aria: { label: _('Configure') } }))) + button_options: { + title: _('Configure'), + class: 'gl-ml-2 has-tooltip', + aria: { label: format(_('Configure feature "%{name}"'), name: title) } + }))) end if doc_href.present? @@ -29,6 +33,7 @@ def feature_entry(title, href: nil, enabled: true, doc_href: nil, last: false, c doc_href, class: 'gl-ml-4 gl-mr-2 has-tooltip', title: _('Documentation'), + aria: { label: format(_('Documentation about the "%{name}" feature'), name: title) }, target: '_blank', rel: 'noopener noreferrer' ) diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 49945b910de84..be6cea0353550 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -15505,6 +15505,9 @@ msgstr "" msgid "Configure custom rules for Jira issue key matching" msgstr "" +msgid "Configure feature \"%{name}\"" +msgstr "" + msgid "Configure import sources and settings related to import and export features." msgstr "" @@ -21374,6 +21377,9 @@ msgstr "" msgid "Documentation" msgstr "" +msgid "Documentation about the \"%{name}\" feature" +msgstr "" + msgid "Documentation for popular identity providers" msgstr "" -- GitLab