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

Open Beginner friendly
#16,050 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript

Research direction

Start with packages/kolibri-common/components/courses/sidePanel/SidePanelModal.vue and trace how it sets focus on mount and configures KFocusTrap; the issue identifies KFocusTrap.vue in KDS 5.9.0 as the related behavior. Reproduce the first Shift+Tab from Close in a listed host, then verify it focuses the last focusable element while Tab from that element still wraps to Close.

Written by the indexing model from the issue text.

Description

bug DEV: frontend

❌ 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.

Dominant language
Python
Stars
1.2k
Forks
1.1k
Avg merge
2d 9h
Merged PRs (30d)
87

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learningequality/kolibri

All issues in learningequality/kolibri

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.