Преглед на файлове

fix: scope css variables so that host css vars don't clash with excalidraw (#3199)

* fix: scope css variables so that host css vars don't clash with excalidraw

* update changelog
Aakansha Doshi преди 4 години
родител
ревизия
420703ba50
променени са 2 файла, в които са добавени 11 реда и са изтрити 3 реда
  1. 1 3
      src/css/theme.scss
  2. 10 0
      src/packages/excalidraw/CHANGELOG.md

+ 1 - 3
src/css/theme.scss

@@ -1,7 +1,7 @@
 @import "open-color/open-color.scss";
 @import "open-color/open-color.scss";
 @import "./variables.module.scss";
 @import "./variables.module.scss";
 
 
-:root {
+.excalidraw {
   --appearance-filter: none;
   --appearance-filter: none;
   --button-destructive-bg-color: #{$oc-red-1};
   --button-destructive-bg-color: #{$oc-red-1};
   --button-destructive-color: #{$oc-red-9};
   --button-destructive-color: #{$oc-red-9};
@@ -34,9 +34,7 @@
   --shadow-island: 0 1px 5px #{transparentize($oc-black, 0.85)};
   --shadow-island: 0 1px 5px #{transparentize($oc-black, 0.85)};
   --space-factor: 0.25rem;
   --space-factor: 0.25rem;
   --text-primary-color: #{$oc-gray-8};
   --text-primary-color: #{$oc-gray-8};
-}
 
 
-.excalidraw {
   &.Appearance_dark {
   &.Appearance_dark {
     background: $oc-black;
     background: $oc-black;
 
 

+ 10 - 0
src/packages/excalidraw/CHANGELOG.md

@@ -12,6 +12,16 @@ The change should be grouped under one of the below section and must contain PR
 Please add the latest change on the top under the correct section.
 Please add the latest change on the top under the correct section.
 -->
 -->
 
 
+## Unreleased
+
+## Excalidraw API
+
+### Fixes
+
+- Scope css variables so that host css vars don't clash with excalidraw[#3199](https://github.com/excalidraw/excalidraw/pull/3199).
+
+---
+
 ## 0.4.2
 ## 0.4.2
 
 
 ## Excalidraw API
 ## Excalidraw API