kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Replace $computedClass in the content viewers

Open LianaHarris360 opened this issue 1 month ago • 6 comments

🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:

  • Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
  • Confirm that you’ve read the guidelines in your comment.

Overview

Replace the 12 $computedClass calls in 7 QTI, media player and EPUB viewer components with <style> block rules. Follow the Guidance and Strategy in the parent issue.

Complexity: Medium Target branch: develop

The Change

  • qti_viewer/frontend/components/interactions/InlineChoiceInteraction.vue
  • qti_viewer/frontend/components/interactions/SimpleChoice.vue
  • qti_viewer/frontend/components/interactions/TextEntryInteraction.vue
  • media_player/frontend/views/AudioPlayer.vue
  • media_player/frontend/views/AudioPlayerControls.vue (5 calls)
  • media_player/frontend/views/MediaPlayerTranscript/TranscriptCue.vue
  • epub_viewer/frontend/views/SettingsSideBar.vue

All paths are under kolibri/plugins/.

Acceptance Criteria

  • [ ] No $computedClass call remains in these components.
  • [ ] Hover, focus and active styles match the previous ones in LTR and RTL.
  • [ ] The keyboard focus outline appears on the QTI interactions, the transcript cues and the EPUB settings that used $coreOutline.

AI usage

I used Claude Code to draft this issue and to count the $computedClass calls per component. I checked the counts against the source and edited the issue for accuracy.

LianaHarris360 avatar Oct 09 '26 13:10 LianaHarris360

Hi @LianaHarris360, I've read the contributing guidelines, including the section on using generative AI. I'd like to work on this one too. I've been testing the QTI viewer on my local Kolibri, so I'd start with the three QTI interactions and then the media player, transcript and EPUB components. I'll follow #15519 as in #15548 (theme colors as var(), v-bind() for non-theme values, no copied !important, LTR-only directional rules), keep the focus outline on the QTI interactions, transcript cues and EPUB settings, and include before/after screenshots of hover, focus and active states in LTR and RTL. If you'd rather I take only one of #15548 and #15549, I'm happy to work on whichever you prefer. Could you assign it to me?

Rishika-dev avatar Oct 09 '26 15:10 Rishika-dev

Thank you for volunteering to take this on! I've assigned you to the other task for now.

LianaHarris360 avatar Oct 09 '26 16:10 LianaHarris360

Hi @LianaHarris360,

I've read the contributing guidelines, including the section on using generative AI.

Since Rishika took the other task, I'd love to work on this one (#15549). I'll follow the migration strategy in #15519 (using theme CSS variables, v-bind() where needed, keeping the focus outline, and testing in both LTR and RTL).

Could you please assign this to me?

tushaar-05 avatar Oct 09 '26 16:10 tushaar-05

Thanks so much @LianaHarris360 for assigning this issue to me! 😁

I've completed the work and opened PR #15557. All 12 occurrences of $computedClass across the 7 content viewer components have been migrated, and all pre-review checks and tests are passing.

Please take a look whenever you have time and let me know if any changes are needed. Thanks! :)

tushaar-05 avatar Oct 09 '26 22:10 tushaar-05

/ assign

thadidaniel-ctrl avatar Oct 12 '26 12:10 thadidaniel-ctrl

Hi! 👋

Thanks so much for your interest! This issue is already assigned. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.

We really appreciate your willingness to help. 😊

Are you preparing for Google Summer of Code? See our GSoC guidelines.

learning-equality-bot avatar Oct 12 '26 13:10 learning-equality-bot