Skip to content

fix(datetime): include date in accessible name - #31609

Open
ljanner wants to merge 1 commit into
ionic-team:mainfrom
ljanner:fix/datetime/month-year-toggle-accessible-name
Open

ljanner wants to merge 1 commit into
ionic-team:mainfrom
ljanner:fix/datetime/month-year-toggle-accessible-name

Conversation

@ljanner

@ljanner ljanner commented Oct 20, 2026

Copy link
Copy Markdown

Issue number: resolves #31608

Include the visible month and year before the month/year toggle's existing Show/Hide year picker instruction. The action-only aria-label overrides the visible date and violates WCAG 2.5.3 (Label in Name), preventing voice-control users from targeting the button by its text.

Reuse the localized month/year string for both the visible text and accessible name so they stay in sync as the calendar, value, locale, and picker state change, without adding a new API.

Extend the existing spec tests to assert the complete collapsed and expanded labels, and cover updates to the localized month/year.

Does this introduce a breaking change?

  • Yes
  • No

Include the visible month and year before the month/year toggle's
existing Show/Hide year picker instruction. The action-only aria-label
overrides the visible date and violates WCAG 2.5.3 (Label in Name),
preventing voice-control users from targeting the button by its text.

Reuse the localized month/year string for both the visible text and
accessible name so they stay in sync as the calendar, value, locale,
and picker state change, without adding a new API.

Extend the existing spec tests to assert the complete collapsed and
expanded labels, and cover updates to the localized month/year.

Fixes ionic-team#31608
@ljanner
ljanner requested a review from a team as a code owner October 20, 2026 11:12
@ljanner
ljanner requested a review from thetaPC October 20, 2026 11:12
@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

@ljanner is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the package: core @ionic/core package label Oct 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: datetime month/year toggle accessible name omits visible text

1 participant