Skip to content

[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
Copy link
Copy Markdown

@fkwq34 fkwq34 commented May 14, 2026

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 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.

Date picker: hardcoded aria labels

1 participant