mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
fix aria labels for database text boxes (#7628)
This commit is contained in:
@@ -79,19 +79,19 @@ export abstract class DacFxConfigPage extends BasePage {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected async createDatabaseTextBox(): Promise<azdata.FormComponent> {
|
||||
protected async createDatabaseTextBox(title: string): Promise<azdata.FormComponent> {
|
||||
this.databaseTextBox = this.view.modelBuilder.inputBox().withProperties({
|
||||
required: true
|
||||
}).component();
|
||||
|
||||
this.databaseTextBox.ariaLabel = localize('dacfx.databaseAriaLabel', "Database");
|
||||
this.databaseTextBox.ariaLabel = title;
|
||||
this.databaseTextBox.onTextChanged(async () => {
|
||||
this.model.database = this.databaseTextBox.value;
|
||||
});
|
||||
|
||||
return {
|
||||
component: this.databaseTextBox,
|
||||
title: localize('dacFx.databaseNameTextBox', 'Target Database')
|
||||
title: title
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user