Repository navigation
[Wizard] Expose the current and disabled steps to screen readers - #5479
Merged
Denis Voituron (dvoituron) merged 4 commits intoOct 21, 2026
Merged
Denis Voituron (dvoituron) merged 4 commits into
Denis Voituron (dvoituron) merged 4 commits into
Conversation
The current step was only identified by a custom status attribute, and the disabled attribute has no meaning on a list item. The steps now set aria-current="step" and aria-disabled.
NoobMaster (oONoobMasterOo)
requested review from
Denis Voituron (dvoituron) and
Vincent Baaij (vnbaaij)
as code owners
October 19, 2026 09:41
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused attributes match existing state and have corresponding test coverage, with no blocking issues identified; tests were not executed.
No open issues 🎉
What changed in this PR
Improves FluentWizard accessibility by exposing existing step state to screen readers without changing visuals or navigation.
Changes:
- Adds
aria-current="step"andaria-disabled="true"where applicable. - Adds navigation assertions and updates snapshots for the new attributes.
| File | Description |
|---|---|
| tests/Core/Components/Wizard/FluentWizardTests.razor | Tests accessible state after navigation. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_WithSteps.verified.razor.html | Updates current-step snapshot. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_ValueBinding.verified.razor.html | Updates bound-value snapshot. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_StepTemplate.verified.razor.html | Updates step-template snapshot. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_StepSequenceAny.verified.razor.html | Updates unrestricted-navigation snapshot. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_PreviousButton.verified.razor.html | Updates previous-navigation snapshot. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_NextButton.verified.razor.html | Updates next-navigation snapshot. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_DisabledStep.verified.razor.html | Captures current and disabled attributes. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_DeferredLoading.verified.razor.html | Updates deferred-loading snapshot. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_Default.verified.razor.html | Updates default-state snapshot. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_CancelStepChange.verified.razor.html | Updates canceled-navigation snapshot. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_ButtonTemplate.verified.razor.html | Updates button-template snapshot. |
| tests/Core/Components/Wizard/FluentWizardTests.FluentWizard_Border.verified.razor.html | Updates bordered-wizard snapshot. |
| src/Core/Components/Wizard/FluentWizardStep.razor | Emits ARIA attributes from existing state. |
Review effort: Balanced
Collaborator
|
We've added a new requirement regarding PRs
|
Contributor
Author
Done |
Denis Voituron (dvoituron)
approved these changes
Oct 21, 2026
This was referenced Nov 16, 2026
Merged
Closed
This was referenced Nov 23, 2026
Closed
This was referenced Nov 30, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
📖 Description
The
FluentWizardsteps (li) identify the current step only with the customstatusattribute, and disabled steps with adisabledattribute, which has no meaning on a list item. Screen readers therefore can't tell which step is the current one, or that a step is disabled (WCAG 1.3.1 / 4.1.2).Changes
FluentWizardStepnow renders:aria-current="step"on the current step,aria-disabled="true"on a disabled step.The visual rendering doesn't change (the
statusanddisabledattributes are kept for the CSS).🎫 Issues
👩💻 Reviewer Notes
Only two attributes are added; the visual rendering doesn't change.
The steps can be clicked with a mouse (
@onclickon theli), but they're not focusable or operable with the keyboard; the Previous / Next buttons remain available. Making the steps keyboard-operable changes their semantics (buttons / links inside the list), so I kept it out of this PR; happy to work on it if you agree.📑 Test Plan
Unit tests
Added
FluentWizard_CurrentStep_IsExposedToAssistiveTechnologies, and updated theFluentWizardsnapshots with the two attributes.tests/Coresuite on this branch: 4904 tests, 0 failed (at3c66e5875).Other checks
✅ Checklist
General
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
⏭ Next Steps
Keyboard-operable steps: #5482.