Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/main/src/DynamicDateRange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
DYNAMIC_DATE_RANGE_SELECTED_TEXT,
DYNAMIC_DATE_RANGE_EMPTY_SELECTED_TEXT,
DYNAMIC_DATE_RANGE_NAVIGATION_ICON_TOOLTIP,
DYNAMIC_DATE_RANGE_POPOVER_ACCESSIBLE_NAME,
} from "./generated/i18n/i18n-defaults.js";

// default calendar for bundling
Expand Down Expand Up @@ -288,6 +289,10 @@ class DynamicDateRange extends UI5Element {
return DynamicDateRange.i18nBundle.getText(DYNAMIC_DATE_RANGE_NAVIGATION_ICON_TOOLTIP);
}

get popoverAccessibleName() {
return DynamicDateRange.i18nBundle.getText(DYNAMIC_DATE_RANGE_POPOVER_ACCESSIBLE_NAME);
}

_togglePicker(): void {
if (this.open) {
this._close();
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/DynamicDateRangePopoverTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function DynamicDateRangePopoverTemplate(this: DynamicDateRange)
onClose={this.onPopoverClose}
onBeforeOpen={this.onPopoverBeforeOpen}
onKeyDown={this.onKeyDownPopover}
accessibleName={this.popoverAccessibleName}
>
{this._hasCurrentOptionTemplate &&
<div slot="header" class="ui5-ddr-header">
Expand Down
3 changes: 3 additions & 0 deletions packages/main/src/i18n/messagebundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,9 @@ DYNAMIC_DATE_TIME_RANGE_TEXT_FROM_LABEL=From
#FLD: Text for the selected date section when there's no value in the DynamicDateRange component.
DYNAMIC_DATE_RANGE_EMPTY_SELECTED_TEXT=Choose Dates

#XACT: Accessible name for the DynamicDateRange popover dialog.
DYNAMIC_DATE_RANGE_POPOVER_ACCESSIBLE_NAME=Dynamic Date Range

#XFLD: Text for icon that navigates back to the previous page in the DynamicDateRange component.
DYNAMIC_DATE_RANGE_NAVIGATION_ICON_TOOLTIP=Navigate back

Expand Down
Loading