Skip to content

Commit 115dfce

Browse files
committed
chore: adjust placeholder for searchbox / load Open Sans for searchbox button
1 parent 0d6467a commit 115dfce

4 files changed

Lines changed: 17 additions & 4 deletions

File tree

apps/site/components/Common/Search/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import tailwindConfig from '@/tailwind.config';
22

33
const colors = tailwindConfig.theme.colors;
44
export const themeConfig = {
5+
typography: {
6+
'--font-primary': 'var(--font-open-sans)',
7+
},
58
colors: {
69
light: {
710
'--text-color-primary': colors.neutral[900],

apps/site/components/Common/Skeleton/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import classNames from 'classnames';
12
import type { FC, PropsWithChildren } from 'react';
23
import { isValidElement } from 'react';
34

@@ -27,7 +28,7 @@ const Skeleton: FC<PropsWithChildren<SkeletonProps>> = ({
2728
<span
2829
tabIndex={-1}
2930
aria-hidden="true"
30-
className={`${styles.skeleton} ${className}`}
31+
className={classNames(styles.skeleton, className)}
3132
data-inline-skeleton={isValidElement(children) ? undefined : true}
3233
>
3334
{children}

apps/site/components/Containers/NavBar/index.module.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,15 @@
8686
dark:border-neutral-900;
8787
}
8888

89-
.searchButtonSkeleton {
90-
@apply flex-grow;
89+
span.searchButtonSkeleton {
90+
@apply my-px
91+
mr-2
92+
flex-grow
93+
rounded-xl;
94+
95+
&:empty {
96+
@apply h-10;
97+
}
9198
}
9299

93100
.ghIconWrapper {

apps/site/components/Containers/NavBar/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ import style from './index.module.css';
2020

2121
const SearchButton = dynamic(() => import('@/components/Common/Search'), {
2222
ssr: false,
23-
loading: () => <Skeleton className={style.searchButtonSkeleton} loading />,
23+
loading: () => (
24+
<Skeleton className={style.searchButtonSkeleton} loading={true} />
25+
),
2426
});
2527

2628
const navInteractionIcons = {

0 commit comments

Comments
 (0)