From 0506479b5c3d2aa0a706b354b60a7e916216c583 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Thu, 4 Dec 2025 08:25:57 -0800 Subject: [PATCH] fix: Refer to connections as positions in ARIA descriptions (#9509) --- core/rendered_connection.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/rendered_connection.ts b/core/rendered_connection.ts index bbf32006b..7cb8fe197 100644 --- a/core/rendered_connection.ts +++ b/core/rendered_connection.ts @@ -335,7 +335,10 @@ export class RenderedConnection if (highlightSvg) { highlightSvg.style.display = ''; aria.setRole(highlightSvg, aria.Role.FIGURE); - aria.setState(highlightSvg, aria.State.ROLEDESCRIPTION, 'Connection'); + const connectionType = + this.type === ConnectionType.INPUT_VALUE ? 'value' : 'statement'; + const roleDescription = `${connectionType} block position`; + aria.setState(highlightSvg, aria.State.ROLEDESCRIPTION, roleDescription); if (this.type === ConnectionType.NEXT_STATEMENT) { const parentInput = this.getParentInput() ?? @@ -359,7 +362,7 @@ export class RenderedConnection `${this.getParentInput()?.getFieldRowLabel()}`, ); } else { - aria.setState(highlightSvg, aria.State.LABEL, 'Open connection'); + aria.setState(highlightSvg, aria.State.LABEL, 'Empty'); } } }