From 5311737b74c7efad51ce686269368ce4d8c033c8 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Mon, 7 Mar 2022 11:38:46 -0500 Subject: [PATCH] simplify accessible name of date selector dialog this PR simply changes the current dialog name from "a time selection control dialog" to a much more concise string of "date selector". The word "dialog" will already be announced by screen readers per this component's role, so we don't need it as part of the name. --- src/UXClient/Interfaces/DateTimeButton.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UXClient/Interfaces/DateTimeButton.ts b/src/UXClient/Interfaces/DateTimeButton.ts index ad91ae86..838495b4 100644 --- a/src/UXClient/Interfaces/DateTimeButton.ts +++ b/src/UXClient/Interfaces/DateTimeButton.ts @@ -35,7 +35,7 @@ class DateTimeButton extends ChartComponent { if (!this.dateTimePickerContainer) { this.dateTimePickerContainer = dateTimeContainer.append('div').classed('tsi-dateTimePickerContainer', true) .attr('role', 'dialog') - .attr('aria-label', this.getString('a time selection control dialog')); + .attr('aria-label', this.getString('date selector')); this.dateTimePickerContainer.style('display', 'none'); } super.themify(d3.select(this.renderTarget), this.chartOptions.theme);