Skip to content

Commit

Permalink
Add will-change to excalidraw diagrams.
Browse files Browse the repository at this point in the history
Adding will-change: filter seems to fix the issue with the Excalidraw diagrams on dark mode and recent Safari versions.
This change was also tested on Firefox and Chrome and it didn't break the diagrams in those browsers.

This fixes #3497.
  • Loading branch information
rodrigogiraoserrao committed Oct 10, 2023
1 parent 927e59b commit 12240ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/stylesheets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ h3 .doc-heading code {
}

body[data-md-color-primary="black"] .excalidraw svg {
will-change: filter;
filter: invert(100%) hue-rotate(180deg);
}

Expand Down

0 comments on commit 12240ef

Please sign in to comment.