kolibri
kolibri copied to clipboard
First Shift+Tab from Close in the courses side panel does not wrap
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: develop
Observed behavior
packages/kolibri-common/components/courses/sidePanel/SidePanelModal.vuefocuses the panel itself on mount.- Tab then moves to Close, the first focusable element.
- The first Shift+Tab from Close lands on
KFocusTrap's start sentinel while the trap is still inactive, so KDS 5.9.0KFocusTrap.handleFirstTrapFocusfocuses the first element, Close, again. - Only the second Shift+Tab wraps to the last focusable element.
Expected behavior
- The first Shift+Tab from Close moves focus to the panel's last focusable element.
User-facing consequences
- Keyboard users stay on Close after their first Shift+Tab, in every host of this panel:
- Coach:
LearnerSidePanel.vue,LearningObjectiveSidePanel.vue,sidePanels/AssignCourse/index.vue - Learn:
ResourceLayout/index.vue
- Coach:
Steps to reproduce
- In Coach, open a course's learner side panel.
- Press Tab: focus is on Close.
- Press Shift+Tab: focus stays on Close.
Context
release-v0.20.x,kolibri-design-system5.9.0.
Acceptance Criteria
- [ ] In each host above, the first Shift+Tab from Close focuses the panel's last focusable element.
- [ ] Tab from the last focusable element still wraps to Close.
AI usage
Claude Code found this while building the viewer sandbox (#15950), traced it in SidePanelModal.vue and KDS KFocusTrap.vue, and drafted this issue.