5 ms·
If I switch to the light theme and back again, the diagrams become white and readable.
by michielderhaeg 3y ago
If I switch to the light theme and back again, the diagrams become white and readable.
- V__ 3y agoHe is inverting the embedded SVG's colors using CSS. However, that CSS is JavaScript applied and doesn't trigger on page load. SVG offers a nice 'currentColor' color value, which resolves to the inherited text-color. Replacing stroke='#000000' with stroke='currentColor' would solve this bug without requiring any JS.