Repository navigation
fix: move hamburger aria-expanded from wrapper div to its fluent-button - #5659
Jay (jay23606) wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The hamburger button lacks an initial aria-expanded="false" state, preventing screen readers from announcing the collapsed drawer before the first toggle; initialize it and add a render assertion.
1 open issue
Review effort: Balanced
|
Hi Jay (@jay23606), You must follow the PR template for the description. We have checks running on AI submission and issue discussion requirements. These checks are failing now so we can't merge after review. Also, please check Copilot's comment about initialization. |
Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com>
|
Jay (@jay23606) please check the appropriate checkboxes in the description |
|
Jay (@jay23606) I have already discussed this issue in change request #5653. |
|
Closing this one as it is rolled up into #5660. Thank you! |

Pull Request
📖 Description
The layout hamburger JS put
aria-expandedon the wrapper<div>, which has no role. The innerfluent-buttonis the interactive control, but it did not expose an initial collapsed state to assistive technology.This change keeps
aria-expandedon the inner button, initializes it tofalse, and keepsaria-controlspointed at the drawer. The render assertion and affected snapshots now cover the initial state.🎫 Issues
Fixes #5644. The proposed resolution was discussed and approved in the issue discussion.
👩💻 Reviewer Notes
Please verify the hamburger button exposes
aria-expanded="false"before interaction, then reflects the open and closed states after toggling. Confirm the wrapper has noaria-expandedattribute and the button'saria-controlsreferences the drawer.📑 Test Plan
aria-expanded="false"and drawer relationship; updated affected snapshots.git diff --checkpasses.dotnet testcould not reach test execution: compilation stops with CS9057 because the generator assembly references compiler 5.12 while the installed compiler is 5.9. The PR remains draft for CI validation.✅ Checklist
General
Issue discussion declaration
Discuss changes before implementing them to confirm that the problem and proposed approach fit the project. See Discuss before implementing for the process and exceptions.
AI contribution declaration
AI assistance is allowed; fully AI-generated or autonomous pull requests without meaningful human review are not accepted. See the AI contribution policy.
Component-specific
MCP Server
⏭ Next Steps
CI should validate the updated component tests; after the author completes the required declarations, the PR can be marked ready for review.