mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Add aria lables to pod drop down and tables of PG resources (#16229)
* Add aria labels to pod drop down on resource health and tables on overview * Added roles * Fix strings * Added role to table headers * Added heading levels
This commit is contained in:
@@ -81,7 +81,8 @@ export class PostgresOverviewPage extends DashboardPage {
|
||||
const titleCSS = { ...cssStyles.title, 'margin-block-start': '2em', 'margin-block-end': '0' };
|
||||
content.addItem(this.modelView.modelBuilder.text().withProps({
|
||||
value: loc.serviceEndpoints,
|
||||
CSSStyles: titleCSS
|
||||
CSSStyles: titleCSS,
|
||||
headingLevel: 1
|
||||
}).component());
|
||||
|
||||
this.kibanaLink = this.modelView.modelBuilder.hyperlink().component();
|
||||
@@ -107,6 +108,7 @@ export class PostgresOverviewPage extends DashboardPage {
|
||||
|
||||
const endpointsTable = this.modelView.modelBuilder.declarativeTable().withProps({
|
||||
width: '100%',
|
||||
ariaLabel: loc.serviceEndpoints,
|
||||
columns: [
|
||||
{
|
||||
displayName: loc.name,
|
||||
@@ -148,13 +150,15 @@ export class PostgresOverviewPage extends DashboardPage {
|
||||
// Server Group Nodes
|
||||
content.addItem(this.modelView.modelBuilder.text().withProps({
|
||||
value: loc.serverGroupNodes,
|
||||
CSSStyles: titleCSS
|
||||
CSSStyles: titleCSS,
|
||||
headingLevel: 1
|
||||
}).component());
|
||||
|
||||
|
||||
|
||||
this.podStatusTable = this.modelView.modelBuilder.declarativeTable().withProps({
|
||||
width: '100%',
|
||||
ariaLabel: loc.serverGroupNodes,
|
||||
columns: [
|
||||
{
|
||||
displayName: loc.name,
|
||||
|
||||
@@ -90,6 +90,7 @@ export class PostgresResourceHealthPage extends DashboardPage {
|
||||
this.podConditionsContainer = this.modelView.modelBuilder.divContainer().component();
|
||||
this.podConditionsTable = this.modelView.modelBuilder.declarativeTable().withProps({
|
||||
width: '100%',
|
||||
ariaLabel: loc.podConditionsTable,
|
||||
columns: [
|
||||
{
|
||||
displayName: loc.condition,
|
||||
@@ -122,7 +123,10 @@ export class PostgresResourceHealthPage extends DashboardPage {
|
||||
dataValues: this.createPodConditionsDataValues(this.coordinatorData)
|
||||
}).component();
|
||||
|
||||
this.podDropDown = this.modelView.modelBuilder.dropDown().withProps({ width: '150px' }).component();
|
||||
this.podDropDown = this.modelView.modelBuilder.dropDown().withProps({
|
||||
width: '150px',
|
||||
ariaLabel: loc.podsUsedDescriptionAria
|
||||
}).component();
|
||||
this.disposables.push(
|
||||
this.podDropDown.onValueChanged(() => {
|
||||
this.podConditionsTable.setFilter(this.podConditionsTableIndexes.get(String(this.podDropDown.value)));
|
||||
|
||||
Reference in New Issue
Block a user