add aria label content to dropdown controls (#15940)

This commit is contained in:
brian-harris
2021-06-29 15:35:48 -07:00
committed by GitHub
parent 31e9c21c06
commit 1538adf5ed
8 changed files with 21 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ export class AccountsSelectionPage extends MigrationWizardPage {
this._azureAccountsDropdown = view.modelBuilder.dropDown()
.withProps({
ariaLabel: constants.ACCOUNTS_SELECTION_PAGE_TITLE,
width: WIZARD_INPUT_COMPONENT_WIDTH,
editable: true,
fireOnTextChange: true,
@@ -144,6 +145,7 @@ export class AccountsSelectionPage extends MigrationWizardPage {
}).component();
this._accountTenantDropdown = view.modelBuilder.dropDown().withProps({
ariaLabel: constants.AZURE_TENANT,
width: WIZARD_INPUT_COMPONENT_WIDTH,
editable: true,
fireOnTextChange: true,

View File

@@ -555,6 +555,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
}
}).component();
this._networkShareStorageAccountResourceGroupDropdown = this._view.modelBuilder.dropDown().withProps({
ariaLabel: constants.RESOURCE_GROUP,
width: WIZARD_INPUT_COMPONENT_WIDTH,
editable: true,
fireOnTextChange: true,
@@ -578,6 +579,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
}).component();
this._networkShareContainerStorageAccountDropdown = this._view.modelBuilder.dropDown()
.withProps({
ariaLabel: constants.STORAGE_ACCOUNT,
required: true,
width: WIZARD_INPUT_COMPONENT_WIDTH,
editable: true,
@@ -713,6 +715,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
this._blobContainerTargetDatabaseNames.push(blobtargetDatabaseInput);
const blobContainerResourceDropdown = this._view.modelBuilder.dropDown().withProps({
ariaLabel: constants.BLOB_CONTAINER_RESOURCE_GROUP,
width: WIZARD_TABLE_COLUMN_WIDTH,
editable: true,
fireOnTextChange: true,
@@ -729,6 +732,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
const blobContainerStorageAccountDropdown = this._view.modelBuilder.dropDown()
.withProps({
ariaLabel: constants.BLOB_CONTAINER_STORAGE_ACCOUNT,
width: WIZARD_TABLE_COLUMN_WIDTH,
editable: true,
fireOnTextChange: true,
@@ -745,6 +749,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
const blobContainerDropdown = this._view.modelBuilder.dropDown()
.withProps({
ariaLabel: constants.BLOB_CONTAINER,
width: WIZARD_TABLE_COLUMN_WIDTH,
editable: true,
fireOnTextChange: true,

View File

@@ -181,6 +181,7 @@ export class IntergrationRuntimePage extends MigrationWizardPage {
}
}).component();
this._resourceGroupDropdown = this._view.modelBuilder.dropDown().withProps({
ariaLabel: constants.RESOURCE_GROUP,
width: WIZARD_INPUT_COMPONENT_WIDTH,
editable: true,
fireOnTextChange: true,
@@ -202,6 +203,7 @@ export class IntergrationRuntimePage extends MigrationWizardPage {
}).component();
this._dmsDropdown = this._view.modelBuilder.dropDown().withProps({
ariaLabel: constants.IR_PAGE_TITLE,
width: WIZARD_INPUT_COMPONENT_WIDTH,
editable: true,
fireOnTextChange: true,

View File

@@ -291,6 +291,7 @@ export class SKURecommendationPage extends MigrationWizardPage {
}
}).component();
this._managedInstanceSubscriptionDropdown = this._view.modelBuilder.dropDown().withProps({
ariaLabel: constants.SUBSCRIPTION,
width: WIZARD_INPUT_COMPONENT_WIDTH,
editable: true,
fireOnTextChange: true,
@@ -314,6 +315,7 @@ export class SKURecommendationPage extends MigrationWizardPage {
}
}).component();
this._azureLocationDropdown = this._view.modelBuilder.dropDown().withProps({
ariaLabel: constants.LOCATION,
width: WIZARD_INPUT_COMPONENT_WIDTH,
editable: true,
fireOnTextChange: true,
@@ -335,6 +337,7 @@ export class SKURecommendationPage extends MigrationWizardPage {
}
}).component();
this._azureResourceGroupDropdown = this._view.modelBuilder.dropDown().withProps({
ariaLabel: constants.RESOURCE_GROUP,
width: WIZARD_INPUT_COMPONENT_WIDTH,
editable: true,
fireOnTextChange: true,
@@ -356,6 +359,7 @@ export class SKURecommendationPage extends MigrationWizardPage {
}).component();
this._resourceDropdown = this._view.modelBuilder.dropDown().withProps({
ariaLabel: constants.MANAGED_INSTANCE,
width: WIZARD_INPUT_COMPONENT_WIDTH,
editable: true,
fireOnTextChange: true,

View File

@@ -53,6 +53,7 @@ export class SubscriptionSelectionPage extends MigrationWizardPage {
private createAccountDropDown(view: azdata.ModelView): azdata.FormComponent<azdata.DropDownComponent> {
const dropDown = view.modelBuilder.dropDown().withProperties<azdata.DropDownProperties>({
ariaLabel: SUBSCRIPTION_SELECTION_AZURE_ACCOUNT_TITLE,
values: [],
editable: true,
fireOnTextChange: true,
@@ -70,6 +71,7 @@ export class SubscriptionSelectionPage extends MigrationWizardPage {
private createSubscriptionDropDown(view: azdata.ModelView): azdata.FormComponent<azdata.DropDownComponent> {
const dropDown = view.modelBuilder.dropDown().withProperties<azdata.DropDownProperties>({
ariaLabel: SUBSCRIPTION_SELECTION_AZURE_SUBSCRIPTION_TITLE,
values: [],
editable: true,
fireOnTextChange: true,
@@ -87,6 +89,7 @@ export class SubscriptionSelectionPage extends MigrationWizardPage {
private createProductDropDown(view: azdata.ModelView): azdata.FormComponent<azdata.DropDownComponent> {
const dropDown = view.modelBuilder.dropDown().withProperties<azdata.DropDownProperties>({
ariaLabel: SUBSCRIPTION_SELECTION_AZURE_PRODUCT_TITLE,
values: [],
editable: true,
fireOnTextChange: true,