diff --git a/components/lib/calendar/Calendar.spec.js b/components/lib/calendar/Calendar.spec.js index e38ff1eef1..4464570784 100644 --- a/components/lib/calendar/Calendar.spec.js +++ b/components/lib/calendar/Calendar.spec.js @@ -29,7 +29,7 @@ describe('Calendar', () => { const years = container.querySelectorAll('.p-yearpicker-year'); for (const year of years) { - if (year.innerHTML === '2023') { + if (year.innerHTML.startsWith('2023')) { expect(year).toHaveAttribute('data-p-disabled', 'true'); expect(year).toHaveClass('p-disabled'); } else { diff --git a/components/lib/calendar/calendar.d.ts b/components/lib/calendar/calendar.d.ts index 28c4ff5caa..fb1c21b155 100644 --- a/components/lib/calendar/calendar.d.ts +++ b/components/lib/calendar/calendar.d.ts @@ -534,9 +534,9 @@ interface CalendarBaseProps { */ ariaLabelledBy?: string | undefined; /** - * Establishes relationships between the component and label(s) where its value should be one or more element IDs. + * ARIA label for screenreader support. */ - ariaLabelledBy?: string | undefined; + ariaLabel?: string | undefined; /** * Whether to automatically manage layering. * @defaultValue true