Skip to content

Conversation

dobrinyonkov
Copy link
Contributor

@dobrinyonkov dobrinyonkov commented Jul 4, 2025

Fixes: #11495

Summary
Fixes mobile accessibility issues for the Select component.

Changes

  • Sets accessibleName on ResponsivePopover so screen readers announce the header text on mobile.
  • Improves focus handling for selected options in the popover.
  • Adds tests covering mobile and desktop scenarios.

@github-actions github-actions bot added the Stale label Jul 26, 2025
@github-actions github-actions bot closed this Aug 2, 2025
@dobrinyonkov dobrinyonkov reopened this Sep 5, 2025
@github-actions github-actions bot removed the Stale label Sep 6, 2025
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 accessibility issues with the Select component on mobile devices by ensuring proper screen reader announcements. The fix ensures that when a Select popover opens on mobile, the header text is announced to assistive technologies by setting the accessibleName property on the ResponsivePopover.

  • Adds accessibleName property to ResponsivePopover on mobile devices
  • Improves focus handling for selected options in the popover
  • Adds comprehensive test coverage for both mobile and desktop scenarios

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
packages/main/src/SelectPopoverTemplate.tsx Sets accessibleName for ResponsivePopover only on mobile devices
packages/main/src/Select.ts Enhances focus application to selected options by calling focus() method
packages/main/cypress/specs/Select.mobile.cy.tsx Adds test to verify accessibleName is properly set on mobile
packages/main/cypress/specs/Select.cy.tsx Adds tests for desktop accessibleName absence and focus behavior

@dobrinyonkov dobrinyonkov merged commit 972e6db into main Sep 18, 2025
15 of 16 checks passed
@dobrinyonkov dobrinyonkov deleted the fix/select-header-screen-reader-output branch September 18, 2025 12:56
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.

[a11y | Select]: "Select" header is not announced on mobile view
2 participants