Skip to content

Conversation

unazko
Copy link
Contributor

@unazko unazko commented Sep 2, 2025

Fixed: #11803

@unazko unazko requested a review from Copilot September 2, 2025 17:43
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes value state message text handling in DatePicker components by addressing the nested slot structure issue when forwarding value state messages from DatePicker to its internal DateTimeInput component.

  • Overrides ariaValueStateHiddenText getter in DateTimeInput to properly extract text from nested slot structures
  • Adds comprehensive Cypress tests to verify the accessibility text extraction works correctly
  • Includes a test page example to demonstrate the fix

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/main/src/DateTimeInput.ts Adds overridden ariaValueStateHiddenText getter to handle nested slot structure and extract proper text content for accessibility
packages/main/cypress/specs/DatePicker.cy.tsx Adds comprehensive test coverage for the nested slot accessibility text extraction functionality
packages/main/test/pages/DatePicker.html Adds simple test case with value state message slot for manual testing

@unazko unazko marked this pull request as ready for review September 2, 2025 22:42
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.

[ DatePicker]: error messages are not read
1 participant