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
pull/7903/head
Felix Eckhofer 2 weeks ago
parent 85c304f583
commit 65ee4341cf
No known key found for this signature in database
GPG Key ID: B4543DCDE458BF73

@ -767,6 +767,16 @@
svg:first-child {
direction: ltr;
}
// Apply color scheme from wiki.js
svg {
color-scheme: light !important;
}
@at-root .theme--dark & {
svg {
color-scheme: dark !important;
}
}
}
// ---------------------------------

Loading…
Cancel
Save