Skip to content

Add accessibility labels to Networking page Submit button and input fields#637

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/fix-583
Closed

Add accessibility labels to Networking page Submit button and input fields#637
Copilot wants to merge 1 commit intomainfrom
copilot/fix-583

Conversation

Copy link
Contributor

Copilot AI commented Aug 26, 2025

The Submit button and TextInput components in the Networking example page were missing accessibilityLabel properties, causing screen readers to report "The name property of a focusable element must not be null." This violated MAS 4.1.2 accessibility requirements and prevented users with visual impairments from understanding the purpose of these interactive elements.

Changes Made

Added accessibilityLabel properties to the following components in PostChatCompletionExample:

  • Submit Button: Added accessibilityLabel="Submit API request" to clearly identify the button's purpose
  • API Key TextInput: Added accessibilityLabel="API key input field" to help users understand this is for entering their OpenAI API key
  • Question TextInput: Added accessibilityLabel="Question input field" to identify this as the prompt input area

The changes were applied to both architecture versions:

  • src/examples/NetworkExamplePage.tsx
  • NewArch/src/examples/NetworkExamplePage.tsx

Code examples in the string literals were also updated to match the component changes.

Impact

Screen readers will now properly announce the purpose of each interactive element, improving accessibility for users with visual impairments and ensuring compliance with accessibility standards.

Fixes #583.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Microsoft Reviewers: Open in CodeFlow

Copy link
Contributor Author

Copilot AI commented Aug 26, 2025

@anupriya13 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

@anupriya13
Copy link
Contributor

@copilot fix it on New Arch code FABRIC only not in Paper

@anupriya13 anupriya13 closed this Aug 26, 2025
Copilot AI changed the title [WIP] [React Native Gallery -> Networking]: The name property of a focusable element must not be null. Add accessibility labels to Networking page Submit button and input fields Aug 26, 2025
Copilot AI requested a review from anupriya13 August 26, 2025 06:02
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.

[React Native Gallery -> Networking]: The name property of a focusable element must not be null.

2 participants