Sitelet https://github.com/primefaces/primeng/pull/19582
Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

[19580] fix: Remove hardcoded aria-labels in date picker - #19582

Open
fkwq34 wants to merge 1 commit into
primefaces:masterfrom
fkwq34:datepicker-wcag-issue
Open

[19580] fix: Remove hardcoded aria-labels in date picker#19582
fkwq34 wants to merge 1 commit into
primefaces:masterfrom
fkwq34:datepicker-wcag-issue

Conversation

@fkwq34

@fkwq34 fkwq34 commented May 14, 2026

Copy link
Copy Markdown

fixes: #19580

Fixes an accessibility label-content-name-mismatch issue in Datepicker header navigation.

The month and year switch buttons were using static aria-label values (chooseMonth / chooseYear) that could differ from their visible labels (e.g. January, 2026). This caused a mismatch between visible text and accessible name, impacting speech-input users and triggering axe violations.

This PR removes those explicit aria-label bindings so the buttons use their visible text as the accessible name, aligning behavior with WCAG/axe expectations while keeping existing Datepicker functionality unchanged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Date picker: hardcoded aria labels

1 participant