Skip to content

Commit

Permalink
fix highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Feb 22, 2024
1 parent de6f6a7 commit 2a46c62
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/ui/app/src/docs/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const UnmemoizedHeader = forwardRef<HTMLDivElement, PropsWithChildren<Header.Pro
const { navbarLinks, colorsV3 } = config;
const navbarLinksSection = (
<div className="hidden lg:block">
<FernButtonGroup>
<FernButtonGroup className="ml-2">
{navbarLinks?.map((navbarLink, idx) => (
<FernLinkButton
key={idx}
Expand Down Expand Up @@ -88,7 +88,7 @@ const UnmemoizedHeader = forwardRef<HTMLDivElement, PropsWithChildren<Header.Pro

{showSearchBar && searchService.isAvailable && (
<div
className={classNames("max-w-content-width w-full max-lg:hidden", {
className={classNames("max-w-content-width w-full max-lg:hidden shrink min-w-0", {
invisible: isSearchDialogOpen,
})}
>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/app/src/docs/HeaderLogoSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const HeaderLogoSection: React.FC<HeaderLogoSectionProps> = ({
};

return (
<div className="relative flex h-full flex-1 items-center space-x-3 py-1">
<div className="relative mr-2 flex h-full flex-1 shrink-0 items-center space-x-3 py-1">
{logoHref != null ? (
<Link href={logoHref} className="flex items-center">
{renderLogoContent()}
Expand Down
16 changes: 15 additions & 1 deletion packages/ui/app/src/next-app/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,21 @@
}

::selection {
@apply bg-accent-highlight;
@apply bg-accent-highlight-light;
}

::-moz-selection {
@apply bg-accent-highlight-light;
}

:is(.dark) {
::selection {
@apply bg-accent-highlight-dark;
}

::-moz-selection {
@apply bg-accent-highlight-dark;
}
}

html,
Expand Down

0 comments on commit 2a46c62

Please sign in to comment.