Skip to content

A platform for community discussion. Free, open, simple.

DEV: give sidebar link buttons a data-list-item-name (#28389)

Kris43abc219d186
diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section-link-button.gjs b/app/assets/javascripts/discourse/app/components/sidebar/section-link-button.gjs
index f3514418c04..d3e001eff48 100644
--- a/app/assets/javascripts/discourse/app/components/sidebar/section-link-button.gjs
+++ b/app/assets/javascripts/discourse/app/components/sidebar/section-link-button.gjs
@@ -7,6 +7,7 @@ const SidebarSectionLinkButton = <template>
{{on "click" @action}}
type="button"
class="sidebar-section-link sidebar-row --link-button"
+ data-list-item-name={{@text}}
>
<span class="sidebar-section-link-prefix icon">
{{icon @icon}}