Add aria label to connection string pages (#16420)

This commit is contained in:
Charles Gagnon
2021-07-23 16:55:02 -07:00
committed by GitHub
parent 151522013f
commit be0edf9606
2 changed files with 3 additions and 1 deletions

View File

@@ -246,6 +246,7 @@ export function numVCores(vCores: string | undefined): string {
}
}
export function updated(when: string): string { return localize('arc.updated', "Updated {0}", when); }
export function connectionString(type: string): string { return localize({ key: 'arc.connectionString', comment: ['{0} is the name of the type of connection string (e.g. Java)'] }, "Connection string for {0}", type); }
export function copyConnectionStringToClipboard(type: string): string { return localize({ key: 'arc.copyConnectionStringToClipboard', comment: ['{0} is the name of the type of connection string (e.g. Java)'] }, "Copy {0} Connection String to clipboard", type); }
export function copyValueToClipboard(valueName: string): string { return localize({ key: 'arc.copyValueToClipboard', comment: ['{0} is the name of the type of value being copied (e.g. Coordinator endpoint)'] }, "Copy {0} to clipboard", valueName); }

View File

@@ -104,7 +104,8 @@ export abstract class BaseInputKeyValue extends KeyValue {
this.input = modelBuilder.inputBox().withProps({
value: value,
readOnly: true,
multiline: multiline
multiline: multiline,
ariaLabel: loc.connectionString(key)
}).component();
const inputContainer = modelBuilder.flexContainer().withLayout({ alignItems: 'center' }).component();