Skip to content

Confusing aria-label for first and last dates in selected of Range Calendar #6043

Closed as not planned
@xtstoll

Description

@xtstoll

Provide your feedback here.

When using a screen reader to select a date range in the Range Calendar, the aria-label values of first and last dates update when the information about the selection changes.

However, this creates an aria-label value that is very long, and in most cases, very confusing to understand.

🔦 Context

Before selecting anything this is the aria-label of the first date I will select:
aria-label="Tuesday, March 12, 2024"

After selecting the range, it updates like this:
aria-label="Selected Range: Tuesday, March 12 to Saturday, March 16, 2024, Tuesday, March 12, 2024 selected"

This is confusing to hear three dates at once. Perhaps, it will be less confusing to hear like this:
aria-label="Range: March 12 to March 16, Date: Tuesday, March 12, 2024 selected"

Here is a video of NVDA 2023.3.4 showing this:
https://github.com/adobe/react-spectrum/assets/24814666/706c492e-45c9-41b7-a0ba-5e1a3669580e

Version

3.34.0

What browsers are you seeing the problem on?

Chrome, Safari

If other, please specify

No response

What operating system are you using?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions