scope css under name space excalidraw (#1983)

This commit is contained in:
Aakansha Doshi 2020-09-26 02:48:45 +05:30 committed by GitHub
parent 403576861c
commit a61b212220
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 1706 additions and 1559 deletions

View file

@ -757,10 +757,9 @@ class App extends React.Component<ExcalidrawProps, AppState> {
});
}
document.documentElement.classList.toggle(
"Appearance_dark",
this.state.appearance === "dark",
);
document
.querySelector(".excalidraw")
?.classList.toggle("Appearance_dark", this.state.appearance === "dark");
if (this.state.isCollaborating && !this.portal.socket) {
this.initializeSocketClient({ showLoadingState: true });