aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/activity-graph/GraphsZoom.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/activity-graph/GraphsZoom.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/activity-graph/GraphsZoom.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/activity-graph/GraphsZoom.tsx b/server/sonar-web/src/main/js/components/activity-graph/GraphsZoom.tsx
index 921fd843e6a..4c5b61eb82a 100644
--- a/server/sonar-web/src/main/js/components/activity-graph/GraphsZoom.tsx
+++ b/server/sonar-web/src/main/js/components/activity-graph/GraphsZoom.tsx
@@ -23,7 +23,7 @@ import ZoomTimeLine from '../../components/charts/ZoomTimeLine';
import { Serie } from '../../types/project-activity';
import { hasHistoryData } from './utils';
-interface Props {
+interface GraphsZoomProps {
graphEndDate?: Date;
graphStartDate?: Date;
leakPeriodDate?: Date;
@@ -34,13 +34,14 @@ interface Props {
updateGraphZoom: (from?: Date, to?: Date) => void;
}
-export default function GraphsZoom(props: Props) {
+export default function GraphsZoom(props: GraphsZoomProps) {
if (props.loading || !hasHistoryData(props.series)) {
return null;
}
return (
- <div className="activity-graph-zoom">
+ // We hide this for screen readers; they should use date inputs instead.
+ <div className="activity-graph-zoom" aria-hidden={true}>
<AutoSizer disableHeight={true}>
{({ width }) => (
<ZoomTimeLine