Skip to content

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

Open
drgrice1 wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:better-pg-editor-dark-mode
Open

A better approach for dark mode for some rendering in the editor.#3029
drgrice1 wants to merge 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.

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 8171b45 to a808818 Compare June 25, 2026 02:25
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.

1 participant