File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -821,7 +821,10 @@ function renderInlineBlocksAsync(options: BlocksRenderOptions): Promise<void> {
821821 if ( info && r . apiInfo ) {
822822 const symbolInfo = r . apiInfo . byQName [ info . qName ] ;
823823 if ( symbolInfo && symbolInfo . attributes . help ) {
824- $newel = $ ( `<a class="ui link"/>` ) . attr ( "href" , `/reference/${ symbolInfo . attributes . help } ` ) . append ( $newel ) ;
824+ // Create accessible label for the link using a human-readable name
825+ const readableName = symbolInfo . name || symbolInfo . qName ;
826+ const ariaLabel = lf ( "Documentation for {0} block" , readableName ) ;
827+ $newel = $ ( `<a class="ui link"/>` ) . attr ( "href" , `/reference/${ symbolInfo . attributes . help } ` ) . attr ( "aria-label" , ariaLabel ) . append ( $newel ) ;
825828 }
826829 }
827830 $el . replaceWith ( $newel ) ;
You can’t perform that action at this time.
0 commit comments