refactor: update SCSS syntax & remove open-color dep (#10633)
This commit is contained in:
@@ -5,13 +5,13 @@ import { getOriginalContainerHeightFromCache } from "@excalidraw/element";
|
||||
|
||||
import {
|
||||
CODES,
|
||||
colorToHex,
|
||||
KEYS,
|
||||
FONT_FAMILY,
|
||||
TEXT_ALIGN,
|
||||
THEME,
|
||||
VERTICAL_ALIGN,
|
||||
applyDarkModeFilter,
|
||||
tinycolor,
|
||||
} from "@excalidraw/common";
|
||||
|
||||
import type {
|
||||
@@ -1672,7 +1672,7 @@ describe("textWysiwyg", () => {
|
||||
|
||||
// Helper to compare colors (browser may return rgb format)
|
||||
const colorsAreEqual = (color1: string, color2: string) => {
|
||||
return tinycolor(color1).toHex() === tinycolor(color2).toHex();
|
||||
return colorToHex(color1) === colorToHex(color2);
|
||||
};
|
||||
|
||||
beforeEach(async () => {
|
||||
|
||||
Reference in New Issue
Block a user