fix: Update color scheme for SVG in diagram class

Refactor SVG color scheme handling in diagram class.
pull/7903/head
Nicolas Giard 2 weeks ago committed by GitHub
parent 65ee4341cf
commit a9ccd5d445
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -764,16 +764,19 @@
.diagram {
margin-top: 1rem;
overflow: auto;
svg:first-child {
direction: ltr;
}
// Apply color scheme from wiki.js
svg {
color-scheme: light !important;
}
@at-root .theme--dark & {
svg {
color-scheme: light;
&:first-child {
direction: ltr;
}
@at-root .theme--dark & {
color-scheme: dark !important;
}
}

Loading…
Cancel
Save