Fix screen reader button accessibility and category navigation (#4944)

* Fix UI automation peer wrapping and category focusability

* Add accessibility name to SettingsButton

* Avoid nesting ScrollViewer in generated panels with outer viewers

Inspect targetGrid and its parent hierarchy in Invoke-WPFUIElements to avoid adding an inner ScrollViewer when an outer ScrollViewer already exists.
This commit is contained in:
makhlwf
2026-08-09 18:02:53 -05:00
committed by GitHub
parent 53fc260cc0
commit afc3e1eec2
4 changed files with 86 additions and 46 deletions
+7
View File
@@ -138,4 +138,11 @@ Describe "Startup lazy tab wiring" {
$rendererScript | Should -Match '(?s)if \(\$entryInfo\.Link\).*\$textBlock\.Add_MouseUp\(\{.*Start-Process \$Sender\.ToolTip -ErrorAction Stop'
$mainScript | Should -Not -Match '\.Name\.EndsWith\("Link"\)'
}
It "checks for an existing outer ScrollViewer before nesting an inner ScrollViewer" {
$rendererScript = Get-Content -Path (Join-Path $script:repoRoot "functions\public\Invoke-WPFUIElements.ps1") -Raw
$rendererScript | Should -Match '\$hasOuterScrollViewer'
$rendererScript | Should -Match 'if\s*\(\$hasOuterScrollViewer\)'
}
}