UI/update sidebar (#480)
* update minicalendar * update left sidebar * chore: update twake-mui to version 1.1.4 - Update @linagora/twake-mui from local file to npm package 1.1.4 - Add margin to TempCalendarsInput section in sidebar - Remove margin from PeopleSearch component (moved to parent) * Changed wording on my calendars and event creation button --------- Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
@@ -59,6 +59,30 @@ class IntersectionObserverMock {
|
||||
|
||||
(global as any).IntersectionObserver = IntersectionObserverMock;
|
||||
|
||||
// Suppress jsdom CSS selector parsing errors for Emotion/MUI
|
||||
if (typeof window !== "undefined" && window.getComputedStyle) {
|
||||
const originalGetComputedStyle = window.getComputedStyle;
|
||||
window.getComputedStyle = function (
|
||||
element: Element,
|
||||
pseudoElement?: string | null
|
||||
) {
|
||||
try {
|
||||
return originalGetComputedStyle.call(this, element, pseudoElement);
|
||||
} catch (error) {
|
||||
// If CSS selector parsing fails, return a minimal computed style
|
||||
if (
|
||||
error instanceof Error &&
|
||||
error.message.includes("is not a valid selector")
|
||||
) {
|
||||
return {
|
||||
getPropertyValue: () => "",
|
||||
} as CSSStyleDeclaration;
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
beforeAll(() => {
|
||||
console.warn = (...args: unknown[]) => {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user