Add opt-in accessibility features to TreeView component#323
Conversation
…dex support Co-authored-by: csharpfritz <78577+csharpfritz@users.noreply.github.com>
Co-authored-by: csharpfritz <78577+csharpfritz@users.noreply.github.com>
Co-authored-by: csharpfritz <78577+csharpfritz@users.noreply.github.com>
Co-authored-by: csharpfritz <78577+csharpfritz@users.noreply.github.com>
|
@copilot There are some integration tests with messages that look like a failure.
Are these test failures? Repair them if they are broken |
These are not test failures - they are informational log messages from the server about BackColor values in UIStyle components. The integration tests are passing successfully. The "Server Output: fail: Style[0]" messages appear in the console output because the PlaywrightFixture captures all server output for debugging purposes. These are standard ASP.NET Core log messages (likely at "fail" log level) about color parsing or styling operations. Latest integration test run (21546075567): All 57 tests passed ✅
The messages are unrelated to the TreeView accessibility changes and represent existing logging behavior in the application. |
TreeView controls present accessibility barriers for keyboard, screen reader, speech recognition, and touch device users. Small expand/collapse targets are difficult to activate, and lack of keyboard navigation forces mouse dependency.
Changes
UseAccessibilityFeatures(default:false) enables ARIA markup and keyboard navigationrole="tree",role="treeitem",aria-expanded,aria-level,aria-labeltabindex="0"Usage
Screenshot
Shows standard TreeView vs. accessible version with keyboard navigation documentation.
Backwards Compatibility
Feature is opt-in. Default behavior unchanged - maintains original Web Forms HTML output.
Original prompt
💡 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.