feat: add generic handle that inherits colors for multiple types (#5414)
* Fixed HandleTooltipComponent to use the type instead of passed color * Fixed handle colors to use the connected edge color * Changed color of generic handle * Fixed edge color when clicking for generic handles * Updated sidebar filter to contain more than one type * fixed gradient generalBugs
This commit is contained in:
parent
bd7f913d28
commit
ca8f3cad62
5 changed files with 75 additions and 81 deletions
|
|
@ -113,19 +113,13 @@ test(
|
|||
|
||||
const hasGradientUnlocked = await unlockedHandle?.evaluate((el) => {
|
||||
const style = window.getComputedStyle(el);
|
||||
return (
|
||||
style.backgroundImage.includes("conic-gradient") &&
|
||||
style.backgroundImage.includes("rgb(79, 70, 229)")
|
||||
);
|
||||
return style.backgroundColor === "rgb(79, 70, 229)";
|
||||
});
|
||||
|
||||
const secondHasGradientUnlocked = await secondUnlockedHandle?.evaluate(
|
||||
(el) => {
|
||||
const style = window.getComputedStyle(el);
|
||||
return (
|
||||
style.backgroundImage.includes("conic-gradient") &&
|
||||
style.backgroundImage.includes("rgb(79, 70, 229)")
|
||||
);
|
||||
return style.backgroundColor === "rgb(79, 70, 229)";
|
||||
},
|
||||
);
|
||||
|
||||
|
|
@ -137,10 +131,7 @@ test(
|
|||
const fourthHasGradientUnlocked = await fourthUnlockedHandle?.evaluate(
|
||||
(el) => {
|
||||
const style = window.getComputedStyle(el);
|
||||
return (
|
||||
style.backgroundImage.includes("conic-gradient") &&
|
||||
style.backgroundImage.includes("rgb(79, 70, 229)")
|
||||
);
|
||||
return style.backgroundColor === "rgb(79, 70, 229)";
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue