mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 01:25:39 -05:00
Postgres Compute and Storage page accessibility fixes. (#16203)
* focus, required, aria * Fix logic for focusing buttons * Remove buttons focus
This commit is contained in:
@@ -479,6 +479,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
|
||||
const keyComponent = this.modelView.modelBuilder.text().withProps({
|
||||
value: loc.workerNodeCount,
|
||||
requiredIndicator: true,
|
||||
CSSStyles: { ...cssStyles.text, 'margin-block-start': '0px', 'margin-block-end': '0px' }
|
||||
}).component();
|
||||
|
||||
@@ -488,6 +489,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
const information = this.modelView.modelBuilder.button().withProps({
|
||||
iconPath: IconPathHelper.information,
|
||||
title: loc.workerNodesInformation,
|
||||
ariaLabel: loc.workerNodesInformation,
|
||||
width: '15px',
|
||||
height: '15px',
|
||||
enabled: false
|
||||
@@ -547,6 +549,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
if (component.value === originalValue) {
|
||||
return false;
|
||||
} else if ((!component.valid)) {
|
||||
this.discardButton.enabled = true;
|
||||
return false;
|
||||
} else {
|
||||
this.saveButton.enabled = true;
|
||||
@@ -584,6 +587,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
||||
const information = this.modelView.modelBuilder.button().withProps({
|
||||
iconPath: IconPathHelper.information,
|
||||
title: description,
|
||||
ariaLabel: description,
|
||||
width: '15px',
|
||||
height: '15px',
|
||||
enabled: false
|
||||
|
||||
Reference in New Issue
Block a user