mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
fix accessibility issue for open dialog location radio button (#22812)
* fix accessibliity issue where location radio button showed as required * fix ariaLabel
This commit is contained in:
@@ -85,6 +85,7 @@ export const GitRepoUrlTitle = localize('dataworkspace.gitRepoUrlTitle', "Git re
|
||||
export const GitRepoUrlPlaceholder = localize('dataworkspace.gitRepoUrlPlaceholder', "Enter remote git repository URL");
|
||||
export const LocalClonePathTitle = localize('dataworkspace.localClonePathTitle', "Local clone path");
|
||||
export const LocalClonePathPlaceholder = localize('dataworkspace.localClonePathPlaceholder', "Select location to clone repository locally");
|
||||
export const ProjectFileTitle = localize('dataworkspace.projectFileTitle', "Project file");
|
||||
|
||||
// Workspace settings for saving new projects
|
||||
export const ProjectConfigurationKey = 'projects';
|
||||
|
||||
@@ -119,7 +119,6 @@ export class OpenExistingDialog extends DialogBase {
|
||||
|
||||
this.locationRadioButtonFormComponent = {
|
||||
title: constants.LocationSelectorTitle,
|
||||
required: true,
|
||||
component: view.modelBuilder.flexContainer()
|
||||
.withItems([this.localRadioButton, this.remoteGitRepoRadioButton], { flex: '0 0 auto', CSSStyles: { 'margin-right': '15px' } })
|
||||
.withProps({ ariaRole: 'radiogroup' })
|
||||
@@ -192,7 +191,7 @@ export class OpenExistingDialog extends DialogBase {
|
||||
};
|
||||
|
||||
this.filePathTextBox = view.modelBuilder.inputBox().withProps({
|
||||
ariaLabel: constants.LocationSelectorTitle,
|
||||
ariaLabel: constants.ProjectFileTitle,
|
||||
placeHolder: constants.ProjectFilePlaceholder,
|
||||
required: true,
|
||||
width: constants.DefaultInputWidth
|
||||
@@ -212,9 +211,10 @@ export class OpenExistingDialog extends DialogBase {
|
||||
this.register(localProjectBrowseFolderButton.onDidClick(() => this.onBrowseButtonClick()));
|
||||
|
||||
const flexContainer = this.createHorizontalContainer(view, [this.filePathTextBox, localProjectBrowseFolderButton]);
|
||||
void flexContainer.updateCssStyles({ 'margin-top': '-10px' });
|
||||
this.filePathAndButtonComponent = {
|
||||
component: flexContainer
|
||||
component: flexContainer,
|
||||
title: constants.ProjectFileTitle,
|
||||
required: true
|
||||
};
|
||||
|
||||
this.formBuilder = view.modelBuilder.formContainer().withFormItems([
|
||||
|
||||
Reference in New Issue
Block a user