File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,9 +244,12 @@ export class BlockSvg
244244
245245 private computeAriaLabel ( ) : string {
246246 const { commaSeparatedSummary, inputCount} = buildBlockSummary ( this ) ;
247- const inputSummary = inputCount
248- ? ` ${ inputCount } ${ inputCount > 1 ? 'inputs' : 'input' } `
249- : '' ;
247+ let inputSummary = '' ;
248+ if ( inputCount > 1 ) {
249+ inputSummary = 'has inputs' ;
250+ } else if ( inputCount === 1 ) {
251+ inputSummary = 'has input' ;
252+ }
250253
251254 let blockTypeText = 'block' ;
252255 if ( this . isShadow ( ) ) {
@@ -288,7 +291,7 @@ export class BlockSvg
288291
289292 let additionalInfo = blockTypeText ;
290293 if ( inputSummary ) {
291- additionalInfo = `${ additionalInfo } with ${ inputSummary } ` ;
294+ additionalInfo = `${ additionalInfo } , ${ inputSummary } ` ;
292295 }
293296
294297 return prefix + commaSeparatedSummary + ', ' + additionalInfo ;
You can’t perform that action at this time.
0 commit comments