-
Notifications
You must be signed in to change notification settings - Fork 874
Replace CSS Variables in favor of theme variable for css styling #14089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace CSS Variables in favor of theme variable for css styling #14089
Conversation
rtibbles
left a comment
There was a problem hiding this 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!
kolibri/plugins/safe_html5_viewer/frontend/views/SafeHtml5RendererIndex.vue
Outdated
Show resolved
Hide resolved
7f095cc to
8f77db9
Compare
8f77db9 to
b7f7e8b
Compare
Build Artifacts
|
rtibbles
left a comment
There was a problem hiding this 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.
|
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: See the following video where I'm comparing the current version against the official 0.19.1 Kolibri build: sanitizer.mp4Note that I'm not seeing this issue in Microsoft's Edge browser where everything is working fine. |
|
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? |
|
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 |
|
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? |
rtibbles
left a comment
There was a problem hiding this 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.
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