Skip to content

Bug - Calendar month - aria labels for dates outside of the selected month are inaccurate #7718

@wise-king-sullyman

Description

@wise-king-sullyman

Describe the problem
In the calendar month component dates outside of the currently selected are rendered with an inaccurate month in their aria label.

How do you reproduce the problem?

  1. Go to this calendar month example: https://www.patternfly.org/v4/components/calendar-month/react/default/
  2. Open dev tools and inspect the first day of the month, verify that its aria label is "1 November 2020"
  3. Inspect the first day of the next month without changing the currently selected month and verify that its its aria label is also "1 November 2020" when it should be "1 December 2020"

Expected behavior
That the aria labels for dates before/after the currently selected month accurately reflect the month they're in.

Screenshots
image
image

Additionally, this issue has caused problems with regards to properly testing a PR addressing another calendar month bug. This issue should also ideally refactor the test(s) added in this linked PR as needed.

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions