Skip to content
New issue

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

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

Already on GitHub? Sign in 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 · 1 comment
Labels
enhancement New feature or request stale

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
Copy link
Contributor

github-actions bot commented Mar 3, 2025

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

@github-actions github-actions bot added the stale label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

1 participant