Skip to content

Commit a8cfcfb

Browse files
authored
A11Y: Add title to custom link section (#36198)
Before, we were not adding a title attribute to custom sections that were added via UI; _Now_ it should add those automatically: <img width="581" height="354" alt="Screenshot 2025-11-24 at 18 03 11" src="https://github.com/user-attachments/assets/0e6aeb22-a0d8-431a-a657-c3f864a30c98" /> <img width="1500" height="314" alt="Screenshot 2025-11-24 at 18 03 23" src="https://github.com/user-attachments/assets/339ede0e-34be-4ba7-88b5-5f4a82588e25" />
1 parent d3c4ace commit a8cfcfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/discourse/app/components/sidebar/common/custom-section.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default class SidebarCustomSection extends Component {
7575
@suffixCSSClass={{link.suffixCSSClass}}
7676
@suffixType={{link.suffixType}}
7777
@suffixValue={{link.suffixValue}}
78-
@title={{link.title}}
78+
@title={{or link.title link.text}}
7979
@exactUrlMatch={{this.exactUrlMatch}}
8080
/>
8181
{{/each}}

0 commit comments

Comments
 (0)