-
Notifications
You must be signed in to change notification settings - Fork 18
feat: Header - Focus order meaning - Open Edx Demo Course #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## sumac/indigo #30 +/- ##
================================================
+ Coverage 68.39% 68.53% +0.13%
================================================
Files 49 49
Lines 481 483 +2
Branches 107 109 +2
================================================
+ Hits 329 331 +2
Misses 149 149
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| {showUserDropdown && authenticatedUser && ( | ||
| <Responsive maxWidth={991}> | ||
| <AuthenticatedUserDropdown | ||
| username={authenticatedUser.username} | ||
| /> | ||
| </Responsive> | ||
| )} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this different from the same code below? Why is this added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DawoudSheraz This change adjusts the dropdown's DOM position based on screen size—placing it at the end on desktop and the start in mobile’s hamburger menu. This ensures proper focus order and prevents hidden content issues during keyboard navigation. Screenshots are also added in the PR description to demonstrate the fixed behavior across devices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no screenshots in PR description. I understand the context, but please add the screenshot as they are helpful for reviewers and anyone looking at PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DawoudSheraz, I have attached the screenshots.
* fix: Add visible titles to image-based links * feat: enhance accessibility by adding descriptive label to theme toggle (#29) * feat: Header - Focus order meaning - Open Edx Demo Course (#30) * feat: Header - Focus order meaning - Open Edx Demo Course * refactor: unify responsive rendering using the existing Responsive component Co-authored-by: Rahat Ali <rahat.ali@arbisoft.com> Co-authored-by: hinakhadim <hina.khadim@arbisoft.com>
* fix: Add visible titles to image-based links * feat: enhance accessibility by adding descriptive label to theme toggle (#29) * feat: Header - Focus order meaning - Open Edx Demo Course (#30) * feat: Header - Focus order meaning - Open Edx Demo Course * refactor: unify responsive rendering using the existing Responsive component Co-authored-by: Rahat Ali <rahat.ali@arbisoft.com> Co-authored-by: hinakhadim <hina.khadim@arbisoft.com>
* fix: Add visible titles to image-based links * feat: enhance accessibility by adding descriptive label to theme toggle (#29) * feat: Header - Focus order meaning - Open Edx Demo Course (#30) * feat: Header - Focus order meaning - Open Edx Demo Course * refactor: unify responsive rendering using the existing Responsive component Co-authored-by: Rahat Ali <rahat.ali@arbisoft.com> Co-authored-by: hinakhadim <hina.khadim@arbisoft.com>
* fix: Add visible titles to image-based links * feat: enhance accessibility by adding descriptive label to theme toggle (#29) * feat: Header - Focus order meaning - Open Edx Demo Course (#30) * feat: Header - Focus order meaning - Open Edx Demo Course * refactor: unify responsive rendering using the existing Responsive component Co-authored-by: Rahat Ali <rahat.ali@arbisoft.com> Co-authored-by: hinakhadim <hina.khadim@arbisoft.com>
* fix: Add visible titles to image-based links * feat: enhance accessibility by adding descriptive label to theme toggle (#29) * feat: Header - Focus order meaning - Open Edx Demo Course (#30) * feat: Header - Focus order meaning - Open Edx Demo Course * refactor: unify responsive rendering using the existing Responsive component Co-authored-by: Rahat Ali <rahat.ali@arbisoft.com> Co-authored-by: hinakhadim <hina.khadim@arbisoft.com>
📄 Description
This PR resolves a keyboard navigation issue in the hamburger menu of the header on the Progress page in the Open edX Demo Course. The interactive elements within the hamburger menu were either not reachable via keyboard or did not follow a logical focus sequence, posing an accessibility barrier for keyboard-only users.
The fix ensures that focus order is correctly applied to all elements within the hamburger menu, aligning with WCAG Success Criterion 2.4.3 – Focus Order, which requires that focusable components receive focus in an order that preserves meaning and operability.
🎯 Issue
When the hamburger menu is opened, the interactive elements inside it (e.g., links, buttons) are either not accessible via the Tab key or are focused in an illogical order. This prevents users relying on keyboard navigation from accessing the menu content effectively.
✅ Fix
🖼️ Screenshots/Sandbox (optional):
Live Preview: View Sandbox
🔗 Related