🐛 Fixing tooltip on checkboxes
This commit is contained in:
parent
62ee625f25
commit
961c7709a8
@ -1,8 +1,8 @@
|
|||||||
import React from "react";
|
|
||||||
import Image from "next/image";
|
|
||||||
import ToolTipIcon from "@Assets/Icons/tool-tip.svg";
|
import ToolTipIcon from "@Assets/Icons/tool-tip.svg";
|
||||||
import TooltipMUI, { TooltipProps, tooltipClasses } from "@mui/material/Tooltip";
|
|
||||||
import styled from "@emotion/styled";
|
import styled from "@emotion/styled";
|
||||||
|
import TooltipMUI, { tooltipClasses, TooltipProps } from "@mui/material/Tooltip";
|
||||||
|
import Image from "next/image";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
title?: string | JSX.Element;
|
title?: string | JSX.Element;
|
||||||
@ -19,13 +19,13 @@ type IState = {
|
|||||||
const LightTooltip = styled(({ className, ...props }: TooltipProps) => <TooltipMUI {...props} classes={{ popper: className }} />)(
|
const LightTooltip = styled(({ className, ...props }: TooltipProps) => <TooltipMUI {...props} classes={{ popper: className }} />)(
|
||||||
({ theme }) => ({
|
({ theme }) => ({
|
||||||
[`& .${tooltipClasses.tooltip}`]: {
|
[`& .${tooltipClasses.tooltip}`]: {
|
||||||
backgroundColor: "var(--colormerdum)",
|
backgroundColor: "var(--turquoise-flash)",
|
||||||
color: "var(--colormerdum)",
|
color: "white",
|
||||||
//boxShadow: theme.shadows[1],
|
//boxShadow: theme.shadows[1],
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
},
|
},
|
||||||
[`& .${tooltipClasses.arrow}`]: {
|
[`& .${tooltipClasses.arrow}`]: {
|
||||||
// color: theme.palette.common.black,
|
color: "var(--turquoise-flash)",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
@ -100,6 +100,11 @@ export default class AskDocuments extends BasePage<IProps, IState> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override componentDidMount(): void {
|
||||||
|
setTimeout(() => {
|
||||||
|
debugger;
|
||||||
|
}, 3000);
|
||||||
|
}
|
||||||
private openModal() {
|
private openModal() {
|
||||||
this.setState({
|
this.setState({
|
||||||
isCreateDocumentModalVisible: true,
|
isCreateDocumentModalVisible: true,
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
|
|
||||||
--font-primary: "Inter", sans-serif;
|
--font-primary: "Inter", sans-serif;
|
||||||
|
|
||||||
--colormerdum: blue;
|
|
||||||
|
|
||||||
--green-flash: #{$green-flash};
|
--green-flash: #{$green-flash};
|
||||||
--blue-flash: #{$blue-flash};
|
--blue-flash: #{$blue-flash};
|
||||||
--turquoise-flash: #{$turquoise-flash};
|
--turquoise-flash: #{$turquoise-flash};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user