From fb288cfdc1a90a09131a7a87042c55eb84ccedd4 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Sat, 21 Dec 2024 10:59:04 -0500 Subject: [PATCH] fix: update padding and fix positioning (#1934) --- packages/fern-docs/components/.storybook/variables.css | 2 +- packages/fern-docs/components/src/FernButtonV2.tsx | 2 +- .../search-ui/src/components/desktop/desktop-ask-ai.tsx | 6 +++--- packages/fern-docs/tailwind.config.js | 2 +- packages/fern-docs/ui/.storybook/variables.css | 4 ++-- packages/fern-docs/ui/src/search/SearchV2.tsx | 9 --------- .../ui/src/themes/stylesheet/getColorVariables.ts | 4 ++-- 7 files changed, 10 insertions(+), 19 deletions(-) diff --git a/packages/fern-docs/components/.storybook/variables.css b/packages/fern-docs/components/.storybook/variables.css index 175bcca6b8..7ba85decf4 100644 --- a/packages/fern-docs/components/.storybook/variables.css +++ b/packages/fern-docs/components/.storybook/variables.css @@ -64,7 +64,7 @@ --accent-aaa: 173, 255, 140; --accent-tinted: 191, 255, 165; --background: 0, 0, 0; - --accent-contrast: 0, 0, 0; + --accent-contrast: #000; --bg-color-card: var(--grayscale-a2); --sidebar-background: transparent; --header-background: transparent; diff --git a/packages/fern-docs/components/src/FernButtonV2.tsx b/packages/fern-docs/components/src/FernButtonV2.tsx index 4a4ba4ca80..78a3b64b8a 100644 --- a/packages/fern-docs/components/src/FernButtonV2.tsx +++ b/packages/fern-docs/components/src/FernButtonV2.tsx @@ -9,7 +9,7 @@ const buttonVariants = cva( variants: { variant: { default: - "bg-[var(--accent-10)] text-[var(--accent-1)] hover:bg-[var(--accent-9)]", + "bg-[var(--accent-10)] text-[var(--accent-contrast,var(--accent-1))] hover:bg-[var(--accent-9)]", destructive: "bg-[var(--red-10)] text-[var(--red-12)] hover:bg-[var(--red-11)]", outline: diff --git a/packages/fern-docs/search-ui/src/components/desktop/desktop-ask-ai.tsx b/packages/fern-docs/search-ui/src/components/desktop/desktop-ask-ai.tsx index 44ed1b2991..644e603146 100644 --- a/packages/fern-docs/search-ui/src/components/desktop/desktop-ask-ai.tsx +++ b/packages/fern-docs/search-ui/src/components/desktop/desktop-ask-ai.tsx @@ -481,7 +481,7 @@ const AskAIComposer = forwardRef< const inputRef = useRef(null); return (
inputRef.current?.focus()} > @@ -538,12 +538,12 @@ const AskAIComposer = forwardRef< )} /> -
+
{actions}