[do not review] Fix View options expanded state announcement - #17774
[do not review] Fix View options expanded state announcement#17774Adam Ratzman (adamint) wants to merge 2 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 17774Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 17774" |
|
Evidence artifacts for #17466 are uploaded here: https://github.com/adamint/aspire/tree/a11y-artifacts-20260601042635/17466 After-fix evidence shows the View options button now has Useful files:
|
|
I verified this in a real browser with Playwright against Steps: open Resources, open View options, inspect the View options button while the popup is open. On Proof: {"pr":"17774","phase":"base","before":"false","after":"true"}
{"pr":"17774","phase":"pr","before":"false","after":"true"} |
|
Adding the visual proof too; the earlier verification comment had the browser details but the proof was too JSON-heavy. I used Chromium against seeded dashboard mock host with main / before: Before opening: aria-expanded=(missing) After opening: aria-expanded= this PR / after: Before opening: aria-expanded=false After opening: aria-expanded=true this PR also returns aria-expanded=false after choosing a menu item and closing the popup MP4 proof, not webm, with visible keyboard/mouse/focus trace overlay: https://raw.githubusercontent.com/adamint/aspire/c39fcb45309be7a7cf64777cebc78fa0ca482095/proof/a11y/17774/pr-17774-visual-proof.mp4 Contact sheet with the before/after screenshots: https://raw.githubusercontent.com/adamint/aspire/c39fcb45309be7a7cf64777cebc78fa0ca482095/proof/a11y/17774/pr-17774-contact-sheet.png |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Condensed into #17926 to keep the related Resources a11y changes together. Closing this smaller draft. |

Description
Fixes #17466
The Resources page "View options" menu button now exposes a real expanded/collapsed state to assistive technology. Previously the Blazor bool attribute rendering could leave
aria-expandedabsent while collapsed and empty while expanded, so screen readers did not have a reliable state to announce.User-facing usage
Keyboard and screen reader users can now hear the View options menu button state when it is toggled:
After-fix Playwright evidence showed the View options button with
aria-expanded="false"when closed,aria-expanded="true"when open, and the accessibility snapshot reportedbutton "View options" [expanded].Checklist
<remarks />and<code />elements on your triple slash comments?