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

fix(calendar): remove duplicate information for screen-reader user #2457

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gerjanvangeest
Copy link
Member

@gerjanvangeest gerjanvangeest commented Jan 23, 2025

What I did

  1. Remove aria-labelledby="month year" from table. Each day already announces the month and year in the dayTemplate. So it got announced double.
  2. Remove weekdayName from dayTemplate - The weekday is also the table header, so if you move from one text element to another while using the screen-reader, you already hear the weekday announced.
  3. Added a "." to dayTemplate message, to make the message more clear.

Copy link

changeset-bot bot commented Jan 23, 2025

🦋 Changeset detected

Latest commit: e361fba

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lion/ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gerjanvangeest gerjanvangeest force-pushed the fix/calendar-a11y-duplication branch from 78e36c9 to 8cc6853 Compare January 23, 2025 13:52
Copy link
Member

@tlouisse tlouisse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the roles.
Maybe we should add some comments to prevent this change from being requested in te future again

@gerjanvangeest gerjanvangeest force-pushed the fix/calendar-a11y-duplication branch from 05a6946 to e361fba Compare January 23, 2025 15:51
@gerjanvangeest gerjanvangeest force-pushed the fix/calendar-a11y-duplication branch from 21cccbf to e361fba Compare February 10, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants