Skip to content

fix(date): add aria labels to picker navigation buttons and fix other accessibility issues FE-4075 #12980

fix(date): add aria labels to picker navigation buttons and fix other accessibility issues FE-4075

fix(date): add aria labels to picker navigation buttons and fix other accessibility issues FE-4075 #12980

Triggered via pull request October 17, 2023 09:00
Status Failure
Total duration 10m 17s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 10 warnings
lint: src/components/date-range/date-range.stories.tsx#L288
Property 'ariaLabels' is missing in type '{ dateFnsLocale: () => Locale; }' but required in type '{ dateFnsLocale: () => Locale; ariaLabels: { previousMonthButton: () => string; nextMonthButton: () => string; }; }'.
lint: src/components/date/__internal__/date-picker/date-picker.spec.tsx#L290
Type '{ locale: () => "en-GB" | "en-CA" | "en-US" | "fr-CA" | "en-ZA" | "es" | "fr-FR" | "de-DE"; date: { dateFnsLocale: () => globalThis.Locale; }; }' is not assignable to type 'Partial<Locale>'.
lint: src/components/date/__internal__/date-picker/date-picker.spec.tsx#L313
Type '{ locale: () => "en-GB" | "en-CA" | "en-US" | "fr-CA" | "en-ZA" | "es" | "fr-FR" | "de-DE"; date: { dateFnsLocale: () => globalThis.Locale; }; }' is not assignable to type 'Partial<Locale>'.
lint: src/components/date/date.stories.tsx#L451
Property 'ariaLabels' is missing in type '{ dateFnsLocale: () => Locale; }' but required in type '{ dateFnsLocale: () => Locale; ariaLabels: { previousMonthButton: () => string; nextMonthButton: () => string; }; }'.
lint: src/components/date/date.stories.tsx#L463
Property 'ariaLabels' is missing in type '{ dateFnsLocale: () => Locale; }' but required in type '{ dateFnsLocale: () => Locale; ariaLabels: { previousMonthButton: () => string; nextMonthButton: () => string; }; }'.
lint
Process completed with exit code 2.
test (16.x, 4)
Process completed with exit code 1.
test (18.x, 3)
The job was canceled because "_16_x_4" failed.
test (18.x, 3)
The operation was canceled.
test (18.x, 2)
The job was canceled because "_16_x_4" failed.
test (18.x, 2)
The operation was canceled.
test (16.x, 3)
The job was canceled because "_16_x_4" failed.
test (16.x, 3)
The operation was canceled.
test (16.x, 2)
The job was canceled because "_16_x_4" failed.
test (16.x, 2)
The operation was canceled.
test (16.x, 1)
The job was canceled because "_16_x_4" failed.
test (16.x, 1)
The operation was canceled.
test (18.x, 4)
The job was canceled because "_16_x_4" failed.
test (18.x, 4)
The operation was canceled.
test (18.x, 1)
The job was canceled because "_16_x_4" failed.
test (18.x, 1)
The operation was canceled.
lint: src/__internal__/form-field/form-field.component.tsx#L124
React Hook useMemo has a missing dependency: 'loading'. Either include it or remove the dependency array
lint: src/__internal__/sticky-footer/sticky-footer.component.tsx#L26
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
lint: src/components/action-popover/action-popover.stories.tsx#L226
Anchor used as a button. Anchors are primarily expected to navigate. Use the button element instead. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md
lint: src/components/duelling-picklist/duelling-picklist-test.stories.tsx#L62
'removed' is assigned a value but never used
lint: src/components/duelling-picklist/duelling-picklist-test.stories.tsx#L65
'removed2' is assigned a value but never used
lint: src/components/duelling-picklist/duelling-picklist-test.stories.tsx#L73
'removed' is assigned a value but never used
lint: src/components/duelling-picklist/duelling-picklist-test.stories.tsx#L212
'removed' is assigned a value but never used
lint: src/components/duelling-picklist/duelling-picklist-test.stories.tsx#L215
'removed2' is assigned a value but never used
lint: src/components/duelling-picklist/duelling-picklist-test.stories.tsx#L223
'removed' is assigned a value but never used
lint: src/components/duelling-picklist/duelling-picklist-test.stories.tsx#L365
'removed' is assigned a value but never used