Skip to content

Restore navigation menu accessibility announcement - #924

Merged
anuagragith merged 1 commit into
mainfrom
fix/navigation-menu-accessibility-info-import
Sep 10, 2026
Merged

Restore navigation menu accessibility announcement#924
anuagragith merged 1 commit into
mainfrom
fix/navigation-menu-accessibility-info-import

Conversation

@anuagragith

@anuagragith anuagragith commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Gallery PR #921 removed the AccessibilityInfo import from ScreenWrapper.tsx while leaving two references to AccessibilityInfo.announceForAccessibility.

As a result, opening the navigation drawer throws:
Property 'AccessibilityInfo' doesn't exist

This change:

  • Restores the missing AccessibilityInfo import.
  • Adds regression coverage that invokes the navigation-menu handler and verifies the expansion announcement.
  • Does not change navigation state, layout, accessibility properties, or event-handler behavior.

Validation

  • Focused ScreenWrapper regression test passed.
  • Full test suite passed: 16/16 tests and 13/13 snapshots.
  • Lint passed.
  • Debug x64 Windows build succeeded with zero errors.
  • Fresh app runtime validation passed through eight consecutive drawer open/close cycles.
  • No LogBox, AccessibilityInfo, ReferenceError, or TypeError errors occurred.
  • The app remained responsive throughout testing.
Microsoft Reviewers: Open in CodeFlow

Restore the AccessibilityInfo import removed with the hidden skip control cleanup and add coverage that invokes the navigation menu handler.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 18f319cb-b4f4-4b6b-ae4d-b8f429333447
@anuagragith
anuagragith requested a lite review from Copilot September 10, 2026 23:01
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved issues remain, and the focused regression coverage addresses the fix.

Pull request overview

Restores the missing accessibility import and adds regression coverage for navigation-menu announcements.

Changes:

  • Re-adds AccessibilityInfo to ScreenWrapper.
  • Tests the expansion announcement.
File summaries
File Summary
src/components/ScreenWrapper.tsx Restores the required accessibility API import.
__tests__/ScreenWrapper.test.tsx Adds announcement regression coverage.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@anuagragith

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@anuagragith
anuagragith merged commit e45faae into main Sep 10, 2026
7 checks passed
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.

3 participants