Dacpac extension announces invalid text inputs in screen reader mode (#7133)

Text input boxes will have an updated aria-label with a given error message if the input is invalid.
This commit is contained in:
Elliot Boschwitz
2019-09-12 11:05:56 -07:00
committed by GitHub
parent 206c5146e1
commit aaf115a5c8
2 changed files with 15 additions and 3 deletions

View File

@@ -108,12 +108,12 @@ export class ExtractConfigPage extends DacFxConfigPage {
private async createVersionTextBox(): Promise<azdata.FormComponent> {
this.versionTextBox = this.view.modelBuilder.inputBox().withProperties({
required: true
required: true,
ariaLabel: localize('dacFxExtract.versionTextBoxAriaLabel', 'Version')
}).component();
// default version
this.versionTextBox.value = '1.0.0.0';
this.versionTextBox.ariaLabel = localize('dacfx.versionAriaLabel', "Version");
this.model.version = this.versionTextBox.value;
this.versionTextBox.onTextChanged(async () => {