* Focuses the first focusable element in the currently selected step. * This helps screen readers announce the step change. * @private
()
| 932 | * @private |
| 933 | */ |
| 934 | async focusFirstElementInCurrentStep() { |
| 935 | const currentStep = this.slottedSteps[this.selectedStepIndex]; |
| 936 | if (!currentStep || currentStep.disabled) { |
| 937 | return; |
| 938 | } |
| 939 | |
| 940 | const firstElementChild = currentStep.firstElementChild as HTMLElement; |
| 941 | const firstFocusableElement = await getFirstFocusableElement(firstElementChild); |
| 942 | |
| 943 | if (firstFocusableElement) { |
| 944 | firstFocusableElement.focus(); |
| 945 | } |
| 946 | } |
| 947 | |
| 948 | /** |
| 949 | * Scrolls to the content item within the `ui5-wizard` shadowDOM |
no test coverage detected