[#242] fixed calendar color creation API call (#243)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-10-24 13:14:19 +02:00
committed by GitHub
parent 8813bff48c
commit 9c5abb7fbd
5 changed files with 5 additions and 12 deletions
+1 -4
View File
@@ -211,10 +211,7 @@ export default function CalendarSearch({
calId,
cal: {
...cal,
color: {
light: cal.cal["apple:color"],
dark: cal.cal["X-TWAKE-Dark-theme-color"],
},
color: cal.cal["apple:color"],
},
})
);
@@ -37,7 +37,6 @@ export function getAccessiblePair(baseColor: string, theme: Theme): string {
// Check if contrast meets 4.5
const contrast = getContrastRatio(baseColor, adjusted);
console.log(isLight, contrast);
if (contrast >= 4.5) return adjusted;
if (isLight) {