From 564453c84ef08ff8c59362b915c9be8010784d03 Mon Sep 17 00:00:00 2001 From: Edouard Wautier <4435185+Duncid@users.noreply.github.com> Date: Thu, 2 Jan 2025 15:44:11 +0100 Subject: [PATCH] Small contrast adjustments (#9690) --- .../components/markdown/BlockquoteBlock.tsx | 2 +- .../markdown/ContentBlockWrapper.tsx | 6 ++-- sparkle/src/components/markdown/Markdown.tsx | 32 +++++++++++++++---- .../src/components/markdown/TableBlock.tsx | 4 +-- 4 files changed, 32 insertions(+), 12 deletions(-) diff --git a/sparkle/src/components/markdown/BlockquoteBlock.tsx b/sparkle/src/components/markdown/BlockquoteBlock.tsx index 113b85d7203b..a0cfa2c48fd5 100644 --- a/sparkle/src/components/markdown/BlockquoteBlock.tsx +++ b/sparkle/src/components/markdown/BlockquoteBlock.tsx @@ -27,7 +27,7 @@ export function BlockquoteBlock({ children }: BlockquoteBlockProps) {
{children} diff --git a/sparkle/src/components/markdown/ContentBlockWrapper.tsx b/sparkle/src/components/markdown/ContentBlockWrapper.tsx index c0d14ef5d8c8..3edffe4cb38b 100644 --- a/sparkle/src/components/markdown/ContentBlockWrapper.tsx +++ b/sparkle/src/components/markdown/ContentBlockWrapper.tsx @@ -98,7 +98,7 @@ export function ContentBlockWrapper({ className )} > -
+
-
{children}
+
+ {children} +
); } diff --git a/sparkle/src/components/markdown/Markdown.tsx b/sparkle/src/components/markdown/Markdown.tsx index 23b276140b76..01f05fe65d7b 100644 --- a/sparkle/src/components/markdown/Markdown.tsx +++ b/sparkle/src/components/markdown/Markdown.tsx @@ -240,7 +240,7 @@ function PreBlock({ children }: { children: React.ReactNode }) { return (
       {validChildrenContent ? children : fallbackData || children}
@@ -341,20 +341,38 @@ function ParagraphBlock({
   );
 }
 
-type InputProps = Omit, 'ref'> & ReactMarkdownProps & {
-  ref?: React.Ref;
-};
+type InputProps = Omit, "ref"> &
+  ReactMarkdownProps & {
+    ref?: React.Ref;
+  };
 
-function Input({ type, checked, className, onChange, ref, ...props }: InputProps) {
+function Input({
+  type,
+  checked,
+  className,
+  onChange,
+  ref,
+  ...props
+}: InputProps) {
   const inputRef = React.useRef(null);
   React.useImperativeHandle(ref, () => inputRef.current!);
 
   if (type !== "checkbox") {
-    return ;
+    return (
+      
+    );
   }
 
   const handleCheckedChange = (isChecked: boolean) => {
-    onChange?.({ target: { type: "checkbox", checked: isChecked } } as React.ChangeEvent);
+    onChange?.({
+      target: { type: "checkbox", checked: isChecked },
+    } as React.ChangeEvent);
   };
 
   return (
diff --git a/sparkle/src/components/markdown/TableBlock.tsx b/sparkle/src/components/markdown/TableBlock.tsx
index 1b4ddce4ddb8..34dc2b4bdb9b 100644
--- a/sparkle/src/components/markdown/TableBlock.tsx
+++ b/sparkle/src/components/markdown/TableBlock.tsx
@@ -66,10 +66,10 @@ export function TableBlock({ children }: { children: React.ReactNode }) {
 
   return (
     
-      
+      
         {children}