Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Request for announcement of weekday along with the date in screen reader(voice over) #961

Open
1 task done
SahilSetia2512 opened this issue Dec 2, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@SahilSetia2512
Copy link

Before you start - checklist

  • I have checked if this feature request is not already reported

Description

Request for announcement of weekday along with the date in screen reader(voice-over). Currently, it announces the date only.

Proposed solution

I checked through the code and saw that while giving the aria-label in component we are evaluating the label that should be announced. For that formatLongDate function, we are not specifying weekDay as long in formatting options. We need to add support for that.

Screenshot 2024-12-02 at 4 37 46 PM
Screen.Recording.2024-11-26.at.1.44.31.PM.1.mov

Alternatives

No response

Additional information

Without weekday option(Current behaviour)

const date = newDate('2023-12-02');
const formatter = newIntl.DateTimeFormat('en-US', formatLongDateOptions);
console.log(formatter.format(date)); // Output: "December 2, 2023" (in the U.S. English locale)

With weekday option(Proposed behaviour)

const options = { 
  weekday: 'long', 
  day: 'numeric', 
  month: 'long', 
  year: 'numeric' 
};
console.log(date.toLocaleDateString('en-US', options)); // Output: "Saturday, December 2, 2023"
@SahilSetia2512 SahilSetia2512 added the enhancement New feature or request label Dec 2, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant