From fef1932cc7b8c3f6f09ca90e21c7cdef43ced6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Jos=C3=A9=20Borba=20Fernandes?= Date: Mon, 6 Jan 2025 12:28:28 -0300 Subject: [PATCH] chore: reduce Searchbox button layout shift (#7358) --- apps/site/components/Common/Search/utils.ts | 3 +++ apps/site/components/Common/Skeleton/index.tsx | 6 ++++-- .../components/Containers/NavBar/index.module.css | 11 +++++++++++ apps/site/components/Containers/NavBar/index.tsx | 4 ++++ 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/apps/site/components/Common/Search/utils.ts b/apps/site/components/Common/Search/utils.ts index 429f47b3a7d58..fdab2c893008f 100644 --- a/apps/site/components/Common/Search/utils.ts +++ b/apps/site/components/Common/Search/utils.ts @@ -2,6 +2,9 @@ import tailwindConfig from '@/tailwind.config'; const colors = tailwindConfig.theme.colors; export const themeConfig = { + typography: { + '--font-primary': 'var(--font-open-sans)', + }, colors: { light: { '--text-color-primary': colors.neutral[900], diff --git a/apps/site/components/Common/Skeleton/index.tsx b/apps/site/components/Common/Skeleton/index.tsx index 640c1f2e3852d..8b8d43753d608 100644 --- a/apps/site/components/Common/Skeleton/index.tsx +++ b/apps/site/components/Common/Skeleton/index.tsx @@ -1,12 +1,14 @@ +import classNames from 'classnames'; import type { FC, PropsWithChildren } from 'react'; import { isValidElement } from 'react'; import styles from './index.module.css'; -type SkeletonProps = { hide?: boolean; loading?: boolean }; +type SkeletonProps = { hide?: boolean; loading?: boolean; className?: string }; const Skeleton: FC> = ({ children, + className, hide = false, loading = true, }) => { @@ -26,7 +28,7 @@ const Skeleton: FC> = ({