3 Commits
Author SHA1 Message Date
Felix Eckhofer 3dcf20ab6f fix: diagram svg styling add !important qualifier for light scheme (#7905)
This is required, because the <svg> element has an inline style with
`color-scheme: light dark`, which has higher specificity than our css
rule.
2026-01-22 12:27:29 -05:00
Felix EckhoferandNicolas Giard 3ba58f754d fix: apply theme style to embedded diagram svg (#7903)
* fix: Apply theme style to embedded diagram (#7903)

When diagrams are created with "adaptive colors" they automatically
change to light-/darkmode depending on the browser preference. This
leads to rendering problems when the settings in the browser differ
from the wiki.js theme setting.

Fixes #7677

* fix: Update color scheme for SVG in diagram class

Refactor SVG color scheme handling in diagram class.

* fix: remove duplicate svg first-child class

Removed unnecessary direction property from first SVG in diagram.

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
2026-01-20 16:40:00 -05:00
Felix Eckhofer b950e065e9 fix: stop dompurify from breaking draw.io diagrams (#7888)
Newer versions of dompurify strip <foreignobject> tags if not explicitly
allowed. See https://github.com/cure53/DOMPurify/issues/1040

Fixes #7744
2026-01-06 16:56:35 -05:00