From: 7PH Date: Wed, 14 Aug 2024 15:14:24 +0000 (+0200) Subject: SONAR-22287 Fix a11y issues on Background Tasks page X-Git-Tag: 10.7.0.96327~227 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=918abd6befdcc92f2bc7582e33dd6c532304aaa2;p=sonarqube.git SONAR-22287 Fix a11y issues on Background Tasks page --- 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 (