docs: design fixes to toc and related elements (#12747)

* docs: design fixes to toc and related elements

* change header styling

* fix heading styles

* design fixes

* fix showing badges in toc
This commit is contained in:
Shahed Nasser
2025-06-27 10:34:15 +03:00
committed by GitHub
parent f77696e14b
commit 98de6b6ca3
29 changed files with 82 additions and 39 deletions
@@ -46,7 +46,7 @@ export const MainNavItemDropdown = ({
return (
<div
className={clsx(
"cursor-pointer flex gap-docs_0.25 items-center px-docs_0.25 py-docs_0.5",
"cursor-pointer flex gap-docs_0.25 items-center py-docs_0.25 px-docs_0.5",
isActive && "text-medusa-fg-base",
!isActive && [
"text-medusa-fg-muted hover:text-medusa-fg-subtle",
@@ -15,7 +15,10 @@ export const MainNavVersion = () => {
<Link
href={version.releaseUrl}
target="_blank"
className={clsx(version.hide && "hidden", "px-docs_0.5 py-docs_0.25")}
className={clsx(
version.hide && "hidden",
"px-docs_0.5 py-docs_0.25 hover:bg-medusa-button-transparent-hover rounded-docs_sm"
)}
>
<Tooltip html="View the release notes<br/>on GitHub">
<span className="relative text-compact-small-plus block">
@@ -102,7 +102,7 @@ export const MainNav = ({ className, itemsClassName }: MainNavProps) => {
],
}}
isActive={false}
className="text-medusa-fg-subtle"
className="text-medusa-fg-subtle hover:bg-medusa-button-transparent-hover rounded-docs_sm"
wrapperClassName="z-10"
/>
</div>