mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
make tenant list not tab focusable (#14809)
This commit is contained in:
@@ -84,6 +84,9 @@ class AccountPanel extends ViewPane {
|
|||||||
this.tenantList = new List<Tenant>('TenantList', container, new TenantListDelegate(AccountDialog.ACCOUNTLIST_HEIGHT), [this.instantiationService.createInstance(TenantListRenderer)]);
|
this.tenantList = new List<Tenant>('TenantList', container, new TenantListDelegate(AccountDialog.ACCOUNTLIST_HEIGHT), [this.instantiationService.createInstance(TenantListRenderer)]);
|
||||||
this._register(attachListStyler(this.accountList, this.themeService));
|
this._register(attachListStyler(this.accountList, this.themeService));
|
||||||
this._register(attachListStyler(this.tenantList, this.themeService));
|
this._register(attachListStyler(this.tenantList, this.themeService));
|
||||||
|
|
||||||
|
// Temporary workaround for https://github.com/microsoft/azuredatastudio/issues/14808 so that we can close an accessibility issue.
|
||||||
|
this.tenantList.getHTMLElement().tabIndex = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected layoutBody(size: number): void {
|
protected layoutBody(size: number): void {
|
||||||
@@ -301,9 +304,9 @@ export class AccountDialog extends Modal {
|
|||||||
this._noaccountViewContainer!.hidden = true;
|
this._noaccountViewContainer!.hidden = true;
|
||||||
if (Iterable.consume(this._providerViewsMap.values()).length > 0) {
|
if (Iterable.consume(this._providerViewsMap.values()).length > 0) {
|
||||||
const firstView = this._providerViewsMap.values().next().value;
|
const firstView = this._providerViewsMap.values().next().value;
|
||||||
if (firstView instanceof AccountPanel) {
|
if (firstView && firstView.view instanceof AccountPanel) {
|
||||||
firstView.setSelection([0]);
|
firstView.view.setSelection([0]);
|
||||||
firstView.focus();
|
firstView.view.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user