From 961c7709a8689a7c1d08e043cdcbd41efea5bbf2 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Wed, 19 Apr 2023 15:40:26 +0200 Subject: [PATCH] :bug: Fixing tooltip on checkboxes --- src/front/Components/DesignSystem/ToolTip/index.tsx | 12 ++++++------ .../Components/Layouts/Folder/AskDocuments/index.tsx | 5 +++++ src/front/Themes/variables.scss | 2 -- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/front/Components/DesignSystem/ToolTip/index.tsx b/src/front/Components/DesignSystem/ToolTip/index.tsx index 82282499..dddea180 100644 --- a/src/front/Components/DesignSystem/ToolTip/index.tsx +++ b/src/front/Components/DesignSystem/ToolTip/index.tsx @@ -1,8 +1,8 @@ -import React from "react"; -import Image from "next/image"; import ToolTipIcon from "@Assets/Icons/tool-tip.svg"; -import TooltipMUI, { TooltipProps, tooltipClasses } from "@mui/material/Tooltip"; import styled from "@emotion/styled"; +import TooltipMUI, { tooltipClasses, TooltipProps } from "@mui/material/Tooltip"; +import Image from "next/image"; +import React from "react"; type IProps = { title?: string | JSX.Element; @@ -19,13 +19,13 @@ type IState = { const LightTooltip = styled(({ className, ...props }: TooltipProps) => )( ({ theme }) => ({ [`& .${tooltipClasses.tooltip}`]: { - backgroundColor: "var(--colormerdum)", - color: "var(--colormerdum)", + backgroundColor: "var(--turquoise-flash)", + color: "white", //boxShadow: theme.shadows[1], fontSize: 11, }, [`& .${tooltipClasses.arrow}`]: { - // color: theme.palette.common.black, + color: "var(--turquoise-flash)", }, }), ); diff --git a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx index 9b240c5c..bdd02f03 100644 --- a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx @@ -100,6 +100,11 @@ export default class AskDocuments extends BasePage { ); } + override componentDidMount(): void { + setTimeout(() => { + debugger; + }, 3000); + } private openModal() { this.setState({ isCreateDocumentModalVisible: true, diff --git a/src/front/Themes/variables.scss b/src/front/Themes/variables.scss index 6a80b51e..b95bd46f 100644 --- a/src/front/Themes/variables.scss +++ b/src/front/Themes/variables.scss @@ -7,8 +7,6 @@ --font-primary: "Inter", sans-serif; - --colormerdum: blue; - --green-flash: #{$green-flash}; --blue-flash: #{$blue-flash}; --turquoise-flash: #{$turquoise-flash};