Skip to content

Conversation

@AllanOXDi
Copy link
Member

Summary

This PR refactors the SafeHTML rendering to compute and apply theme colors styles instead of using CSS variables (var()).
closes #13851

References

#13851

Reviewer guidance

  • Verify table rendering with proper theme colors (borders, caption, thead/tfoot backgrounds)
  • Verify image rendering with proper border color
  • Test in browsers with limited CSS variable support
  • Confirm no visual regressions

@github-actions github-actions bot added DEV: renderers HTML5 apps, videos, exercises, etc. DEV: frontend SIZE: medium labels Jan 20, 2026
Copy link
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small bit of cleanup, but this is looking correct otherwise!

@github-actions
Copy link
Contributor

github-actions bot commented Jan 20, 2026

Copy link
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the right way to do it, without drilling deeper into the component tree. Just manual QA to confirm no regressions and this will be good to go.

@rtibbles rtibbles dismissed their stale review January 20, 2026 23:42

Changes have been made!

@pcenov
Copy link
Member

pcenov commented Jan 22, 2026

Hi @AllanOXDi - the only issue I noticed in Chrome, Firefox and Safari is in 'All About Hummingbirds (long article)' where under the images there's the following text: tag was not properly removed by the sanitizer.

See the following video where I'm comparing the current version against the official 0.19.1 Kolibri build:

sanitizer.mp4

Note that I'm not seeing this issue in Microsoft's Edge browser where everything is working fine.

@rtibbles
Copy link
Member

Interesting - sanitization should be happening before it gets passed to the code that has been changed here. Do you see this behaviour in 0.19.1 on Chrome as well?

@pcenov
Copy link
Member

pcenov commented Jan 23, 2026

Hmmm, after additional investigation it turned out that I had been comparing it against the official Kolibri 0.19 build. When I updated the VM to Kolibri 0.19.1 I can see the same behaviour there as well so it has nothing to do with the changes made in this PR:

0.19.vs.0.19.1.mp4

@rtibbles
Copy link
Member

Hrm... could you open a follow up issue for it @pcenov as this feels like a regression (albeit a minor one) from 0.19.0?

Copy link
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking from QA and code changes look good.

@rtibbles rtibbles merged commit e2a51a0 into learningequality:release-v0.19.x Jan 23, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants