diff --git a/projects/charts-ng/common/si-chart-base.component.html b/projects/charts-ng/common/si-chart-base.component.html index 28a5be9c32..e418b1b1d2 100644 --- a/projects/charts-ng/common/si-chart-base.component.html +++ b/projects/charts-ng/common/si-chart-base.component.html @@ -34,7 +34,16 @@ /> } } -
+ @if (externalZoomSlider()) { diff --git a/projects/charts-ng/common/si-chart-base.component.ts b/projects/charts-ng/common/si-chart-base.component.ts index b38c99cd63..5071d17da6 100644 --- a/projects/charts-ng/common/si-chart-base.component.ts +++ b/projects/charts-ng/common/si-chart-base.component.ts @@ -2,6 +2,7 @@ * Copyright (c) Siemens 2016 - 2026 * SPDX-License-Identifier: MIT */ +import { LiveAnnouncer } from '@angular/cdk/a11y'; import { AfterViewInit, ChangeDetectorRef, @@ -56,6 +57,12 @@ import { themeSupport } from './theme-support'; templateUrl: './si-chart-base.component.html', styleUrl: './si-chart-base.component.scss', host: { + '[attr.tabindex]': '!showCustomLegend() ? 0 : null', + '[attr.role]': '!showCustomLegend() ? "application" : null', + '[attr.aria-label]': '!showCustomLegend() ? (title() || "Chart") : null', + '(keydown)': 'onChartKeydown($event)', + '(focus)': 'onChartFocus()', + '(blur)': 'onChartBlur()', '(window:theme-switch)': 'themeSwitch()' } }) @@ -74,7 +81,6 @@ export class SiChartBaseComponent implements AfterViewInit, OnChanges, OnInit, O protected readonly siCustomLegend = viewChildren('siCustomLegend', { read: SiCustomLegendComponent }); - /** * See [ECharts 5.x Documentation]{@link https://echarts.apache.org/en/option.html} * for all available options. @@ -86,6 +92,10 @@ export class SiChartBaseComponent implements AfterViewInit, OnChanges, OnInit, O readonly title = input