Fix for propagating aria-label title of form components to loading component (#8051)

This commit is contained in:
Charles Gagnon
2019-10-28 14:48:47 -07:00
committed by GitHub
parent 15fd37e049
commit fa79e5b016
2 changed files with 7 additions and 6 deletions

View File

@@ -331,6 +331,9 @@ class FormContainerBuilder extends GenericContainerBuilder<azdata.FormContainer,
}
if (formComponent.title && componentWrapper) {
componentWrapper.ariaLabel = formComponent.title;
if (componentWrapper instanceof LoadingComponentWrapper) {
componentWrapper.component.ariaLabel = formComponent.title;
}
}
let actions: string[] = undefined;
if (formComponent.actions) {