From d4930b4540f65210f87ea5816335b435ac7efa5d Mon Sep 17 00:00:00 2001 From: Michael Harvey <43474485+mikeharv@users.noreply.github.com> Date: Wed, 20 May 2026 19:27:41 -0400 Subject: [PATCH] feat: allow chaining with setAriaLabelProvider (#9913) --- packages/blockly/core/inputs/input.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/blockly/core/inputs/input.ts b/packages/blockly/core/inputs/input.ts index 88b760dda..eb6acad0e 100644 --- a/packages/blockly/core/inputs/input.ts +++ b/packages/blockly/core/inputs/input.ts @@ -297,9 +297,13 @@ export class Input { * deterministic and idempotent ARIA representation each time the provider is * called for a given input. It's also fine to reuse providers across multiple * Input implementations. + * + * @param provider The string or function to use to set the ARIA label for the input + * @returns The input being modified (to allow chaining). */ - setAriaLabelProvider(provider: AriaLabelProvider | null) { + setAriaLabelProvider(provider: AriaLabelProvider | null): Input { this.ariaLabelProvider = provider; + return this; } /**