mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
fix accessibility issues in update project from db dialog (#22274)
* fix accessibility issues in update project from db dialog * remove aria label on radio buttons
This commit is contained in:
@@ -179,7 +179,9 @@ export class UpdateProjectFromDatabaseDialog {
|
|||||||
this.serverDropdown = view.modelBuilder.dropDown().withProps({
|
this.serverDropdown = view.modelBuilder.dropDown().withProps({
|
||||||
editable: true,
|
editable: true,
|
||||||
fireOnTextChange: true,
|
fireOnTextChange: true,
|
||||||
width: cssStyles.updateProjectFromDatabaseTextboxWidth
|
width: cssStyles.updateProjectFromDatabaseTextboxWidth,
|
||||||
|
ariaLabel: constants.server,
|
||||||
|
required: true
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
this.createConnectionButton(view);
|
this.createConnectionButton(view);
|
||||||
@@ -193,7 +195,9 @@ export class UpdateProjectFromDatabaseDialog {
|
|||||||
this.databaseDropdown = view.modelBuilder.dropDown().withProps({
|
this.databaseDropdown = view.modelBuilder.dropDown().withProps({
|
||||||
editable: true,
|
editable: true,
|
||||||
fireOnTextChange: true,
|
fireOnTextChange: true,
|
||||||
width: cssStyles.updateProjectFromDatabaseTextboxWidth
|
width: cssStyles.updateProjectFromDatabaseTextboxWidth,
|
||||||
|
ariaLabel: constants.databaseNameLabel,
|
||||||
|
required: true
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
this.databaseDropdown.onValueChanged(() => {
|
this.databaseDropdown.onValueChanged(() => {
|
||||||
@@ -382,7 +386,9 @@ export class UpdateProjectFromDatabaseDialog {
|
|||||||
fireOnTextChange: true,
|
fireOnTextChange: true,
|
||||||
value: value,
|
value: value,
|
||||||
values: values,
|
values: values,
|
||||||
width: cssStyles.updateProjectFromDatabaseTextboxWidth
|
width: cssStyles.updateProjectFromDatabaseTextboxWidth,
|
||||||
|
ariaLabel: constants.location,
|
||||||
|
required: true
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
this.projectFileDropdown.onValueChanged(async () => {
|
this.projectFileDropdown.onValueChanged(async () => {
|
||||||
@@ -491,7 +497,6 @@ export class UpdateProjectFromDatabaseDialog {
|
|||||||
|
|
||||||
const actionLabel = view.modelBuilder.text().withProps({
|
const actionLabel = view.modelBuilder.text().withProps({
|
||||||
value: constants.actionLabel,
|
value: constants.actionLabel,
|
||||||
requiredIndicator: true,
|
|
||||||
width: cssStyles.updateProjectFromDatabaseLabelWidth
|
width: cssStyles.updateProjectFromDatabaseLabelWidth
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user