Skip to content

Commit

Permalink
chore: adjust placeholder for searchbox / load Open Sans for searchbo…
Browse files Browse the repository at this point in the history
…x button
  • Loading branch information
rjborba committed Jan 3, 2025
1 parent 0d6467a commit a770193
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions apps/site/components/Common/Search/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
3 changes: 2 additions & 1 deletion apps/site/components/Common/Skeleton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import classNames from 'classnames';
import type { FC, PropsWithChildren } from 'react';
import { isValidElement } from 'react';

Expand Down Expand Up @@ -27,7 +28,7 @@ const Skeleton: FC<PropsWithChildren<SkeletonProps>> = ({
<span
tabIndex={-1}
aria-hidden="true"
className={`${styles.skeleton} ${className}`}
className={classNames(styles.skeleton, className)}
data-inline-skeleton={isValidElement(children) ? undefined : true}
>
{children}
Expand Down
9 changes: 8 additions & 1 deletion apps/site/components/Containers/NavBar/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,14 @@
}

.searchButtonSkeleton {
@apply flex-grow;
@apply my-px
mr-2
flex-grow
rounded-xl;

&:empty {
@apply h-10;
}
}

.ghIconWrapper {
Expand Down
4 changes: 3 additions & 1 deletion apps/site/components/Containers/NavBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import style from './index.module.css';

const SearchButton = dynamic(() => import('@/components/Common/Search'), {
ssr: false,
loading: () => <Skeleton className={style.searchButtonSkeleton} loading />,
loading: () => (
<Skeleton className={style.searchButtonSkeleton} loading={true} />
),
});

const navInteractionIcons = {
Expand Down

0 comments on commit a770193

Please sign in to comment.