From 918abd6befdcc92f2bc7582e33dd6c532304aaa2 Mon Sep 17 00:00:00 2001 From: 7PH Date: Wed, 14 Aug 2024 17:14:24 +0200 Subject: [PATCH] SONAR-22287 Fix a11y issues on Background Tasks page --- .../src/components/input/DateRangePicker.tsx | 10 ++++++---- .../input/__tests__/DateRangePicker-test.tsx | 3 ++- .../js/apps/audit-logs/components/AuditAppRenderer.tsx | 3 ++- .../js/apps/background-tasks/components/DateFilter.tsx | 3 ++- .../main/js/apps/issues/sidebar/CreationDateFacet.tsx | 3 ++- .../components/ProjectActivityDateInput.tsx | 3 ++- .../quality-profiles/changelog/ChangelogSearch.tsx | 3 ++- .../src/main/resources/org/sonar/l10n/core.properties | 3 +++ 8 files changed, 21 insertions(+), 10 deletions(-) diff --git a/server/sonar-web/design-system/src/components/input/DateRangePicker.tsx b/server/sonar-web/design-system/src/components/input/DateRangePicker.tsx index db4b32351e0..03bcdaa302e 100644 --- a/server/sonar-web/design-system/src/components/input/DateRangePicker.tsx +++ b/server/sonar-web/design-system/src/components/input/DateRangePicker.tsx @@ -33,13 +33,14 @@ interface DateRange { interface Props { alignEndDateCalandarRight?: boolean; className?: string; - clearButtonLabel: string; + endClearButtonLabel: string; fromLabel: string; inputSize?: InputSizeKeys; maxDate?: Date; minDate?: Date; onChange: (date: DateRange) => void; separatorText?: string; + startClearButtonLabel: string; toLabel: string; value?: DateRange; valueFormatter?: (date?: Date) => string; @@ -75,7 +76,8 @@ export class DateRangePicker extends React.PureComponent { render() { const { alignEndDateCalandarRight, - clearButtonLabel, + startClearButtonLabel, + endClearButtonLabel, fromLabel, inputSize = 'full', minDate, @@ -89,7 +91,7 @@ export class DateRangePicker extends React.PureComponent { return (
{ {separatorText ?? '–'} = {} render( ) { const dateRange = { from: this.props.minSubmittedAt, to: this.props.maxExecutedAt }; return (