feat(QTI): Refine the prototyped choice interactions
Summary
This PR brings the choice interaction prototype closer to the QTI design spec by adding the answer-guide prompt, improving visual parity with the mockups, and strengthening theming and RTL support.
As part of the theming work, hardcoded colors were replaced with KDS theme tokens. SimpleChoice.vue uses JS-driven style bindings, while ChoiceInteraction.vue exposes theme values through CSS custom properties due to its global styling approach.
The PR also introduces the answer-guide prompt shown above the choice list through a small composable and dedicated component. While implementing it, I fixed a few visual inconsistencies, including the checkmark glyph and shape, layout issues in qti-input-control-hidden mode, and default
- styling that was affecting alignment.
- fixes #14835
- fixes #14864
- fixes #14877
- figma QTI spec
Finally, physical CSS properties were replaced with logical ones to support RTL layouts, and test coverage was expanded for both the new answer-guide behavior and selected-state styling.
References
Reviewer guidance
Navigate to http://localhost:8000/en/learn/#/qti_sandbox and try all the examples from the sandbox and make sure they match the figma spec.
Visuals
| Case | Screenshot |
|---|---|
qti-labels-none |
|
qti-labels-decimal |
|
qti-labels-lower-alpha |
|
qti-labels-upper-alpha |
|
qti-labels-suffix-none |
|
qti-input-control-hidden |
|
| stacking | |
| multiselect custom stacking |
AI usage
I used claude code to do most of the style only updates and verified they match the figma.
👋 Hi @habibayman, thanks for contributing!
For the review process to begin, please verify that the following is satisfied:
-
[ ] Contribution is aligned with our contributing guidelines
-
[ ] Pull request description has correctly filled AI usage section & follows our AI guidance:
AI guidance
State explicitly whether you didn't use or used AI & how.
If you used it, ensure that the PR is aligned with Using AI as well as our DEEP framework. DEEP asks you:
- Disclose — Be open about when you've used AI for support.
- Engage critically — Question what is generated. Review code for correctness and unnecessary complexity.
- Edit — Review and refine AI output. Remove unnecessary code and verify it still works after your edits.
- Process sharing — Explain how you used the AI so others can learn.
Examples of good disclosures:
"I used Claude Code to implement the component, prompting it to follow the pattern in ComponentX. I reviewed the generated code, removed unnecessary error handling, and verified the tests pass."
"I brainstormed the approach with Gemini, then had it write failing tests for the feature. After reviewing the tests, I used Claude Code to generate the implementation. I refactored the output to reduce verbosity and ran the full test suite."
Also check that issue requirements are satisfied & you ran pre-commit locally.
Pull requests that don't follow the guidelines will be closed.
Reviewer assignment can take up to 2 weeks.
Build Artifacts
| Asset type | Download link |
|---|---|
| PEX file | kolibri-0.19.5.dev363_g7d5380fd3.d20260702.pex |
| Windows Installer (EXE) | kolibri-0.19.5.dev363+g7d5380fd3.d20260702-windows-setup-unsigned.exe |
| Debian Package | kolibri_0.19.5.dev363+g7d5380fd3-0ubuntu1_all.deb |
| Mac Installer (DMG) | kolibri-0.19.5.dev363+g7d5380fd3.d20260702.dmg |
| Android Package (APK) | kolibri-0.19.5.dev363+g7d5380fd3-0.2.0-debug.apk |
| Raspberry Pi Image | kolibri-pi-image-0.19.5.dev363+g7d5380fd3.zip |
| TAR file | kolibri-0.19.5.dev363+g7d5380fd3.d20260702.tar.gz |
| WHL file | kolibri-0.19.5.dev363+g7d5380fd3.d20260702-py3-none-any.whl |
Smoke test screenshot
@rtibbles I added screenshots for multiple scenarios -- I hope that covers all of them!