setCalloutType("info")}
size="lg"
aria-label={t("Info")}
- variant={editorState?.isInfo ? "light" : "default"}
+ variant="subtle"
+ className={clsx({ [classes.active]: editorState?.isInfo })}
>
-
+
+
+
+
+
+ setCalloutType("note")}
+ size="lg"
+ aria-label={t("Note")}
+ variant="subtle"
+ className={clsx({ [classes.active]: editorState?.isNote })}
+ >
+
@@ -143,9 +164,13 @@ export function CalloutMenu({ editor }: EditorMenuProps) {
onClick={() => setCalloutType("success")}
size="lg"
aria-label={t("Success")}
- variant={editorState?.isSuccess ? "light" : "default"}
+ variant="subtle"
+ className={clsx({ [classes.active]: editorState?.isSuccess })}
>
-
+
@@ -154,9 +179,13 @@ export function CalloutMenu({ editor }: EditorMenuProps) {
onClick={() => setCalloutType("warning")}
size="lg"
aria-label={t("Warning")}
- variant={editorState?.isWarning ? "light" : "default"}
+ variant="subtle"
+ className={clsx({ [classes.active]: editorState?.isWarning })}
>
-
+
@@ -165,9 +194,10 @@ export function CalloutMenu({ editor }: EditorMenuProps) {
onClick={() => setCalloutType("danger")}
size="lg"
aria-label={t("Danger")}
- variant={editorState?.isDanger ? "light" : "default"}
+ variant="subtle"
+ className={clsx({ [classes.active]: editorState?.isDanger })}
>
-
+
@@ -178,11 +208,10 @@ export function CalloutMenu({ editor }: EditorMenuProps) {
icon={currentIcon ||
}
actionIconProps={{
size: "lg",
- variant: "default",
- c: undefined,
+ variant: "subtle",
}}
/>
-
+
);
}
diff --git a/apps/client/src/features/editor/components/callout/callout-view.tsx b/apps/client/src/features/editor/components/callout/callout-view.tsx
index 5583bd87..3cf5bb57 100644
--- a/apps/client/src/features/editor/components/callout/callout-view.tsx
+++ b/apps/client/src/features/editor/components/callout/callout-view.tsx
@@ -4,6 +4,7 @@ import {
IconCircleCheckFilled,
IconCircleXFilled,
IconInfoCircleFilled,
+ IconNotes,
} from "@tabler/icons-react";
import { Alert } from "@mantine/core";
import classes from "./callout.module.css";
@@ -22,6 +23,7 @@ export default function CalloutView(props: NodeViewProps) {
icon={getCalloutIcon(type, icon)}
p="xs"
classNames={{
+ root: classes.root,
message: classes.message,
icon: classes.icon,
}}
@@ -34,12 +36,14 @@ export default function CalloutView(props: NodeViewProps) {
function getCalloutIcon(type: CalloutType, customIcon?: string) {
if (customIcon && customIcon.trim() !== "") {
- return