kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

First Shift+Tab from Close in the courses side panel does not wrap

Open rtibblesbot opened this issue 1 week ago • 0 comments

❌ 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.vue focuses 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.0 KFocusTrap.handleFirstTrapFocus focuses 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

Steps to reproduce

  1. In Coach, open a course's learner side panel.
  2. Press Tab: focus is on Close.
  3. Press Shift+Tab: focus stays on Close.

Context

  • release-v0.20.x, kolibri-design-system 5.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.

rtibblesbot avatar Nov 25 '26 21:11 rtibblesbot