Skip to content

A better approach for dark mode for some rendering in the editor.#3029

Merged
Alex-Jordan merged 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:better-pg-editor-dark-mode
Jul 7, 2026
Merged

A better approach for dark mode for some rendering in the editor.#3029
Alex-Jordan merged 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:better-pg-editor-dark-mode

Conversation

@drgrice1

Copy link
Copy Markdown
Member

This reworks what was done in #3008 and #3016. Rather than trying to force the PG critic and hardcopy xml into light mode, remove the bg-white class from the render panel and use the page colors. This means that these things are in a proper dark mode for those that use it.

Problems do not need the white background since by default iframes are given a white background. Also the iframe elements do not need to have the color-scheme style set to light. That has no effect inside the iframe anyway.

@drgrice1 drgrice1 force-pushed the better-pg-editor-dark-mode branch from 8171b45 to a808818 Compare June 25, 2026 02:25
@drgrice1 drgrice1 force-pushed the better-pg-editor-dark-mode branch from a808818 to f177d4a Compare July 2, 2026 14:33
This reworks what was done in openwebwork#3008 and openwebwork#3016. Rather than trying to
force the PG critic and hardcopy xml into light mode, remove the
`bg-white` class from the render panel and use the page colors. This
means that these things are in a proper dark mode for those that use it.

Problems do not need the white background since by default iframes are
given a white background.  Also the iframe elements do not need to have
the `color-scheme` style set to `light`.  That has no effect inside the
iframe anyway.
@drgrice1 drgrice1 force-pushed the better-pg-editor-dark-mode branch from f177d4a to b60d855 Compare July 7, 2026 14:43
@Alex-Jordan Alex-Jordan merged commit 3f8ae4c into openwebwork:WeBWorK-2.21 Jul 7, 2026
2 checks passed
@drgrice1 drgrice1 deleted the better-pg-editor-dark-mode branch July 7, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants