docs: update design + colors (#7593)

Update design and colors in docs to match those in Figma
This commit is contained in:
Shahed Nasser
2024-06-04 10:41:24 +03:00
committed by GitHub
parent ecfbfcc707
commit c38f6d07c2
45 changed files with 1511 additions and 804 deletions

View File

@@ -47,7 +47,7 @@ export const SearchModalOpener = ({
return (
<>
{isMobile && (
<Button variant="clear" onClick={handleOpen}>
<Button variant="transparent" onClick={handleOpen}>
<MagnifyingGlass className="text-medusa-fg-muted" />
</Button>
)}

View File

@@ -30,13 +30,13 @@ export const SearchSuggestions = ({ suggestions }: SearchSuggestionsProps) => {
onClick={() => setCommand(command)}
key={index}
tabIndex={index}
className="gap-docs_0.75"
className="justify-between"
>
<>
<span className="flex gap-docs_0.75">
{command.icon}
<span>{command.title}</span>
{command.badge && <Badge {...command.badge} />}
</>
</span>
{command.badge && <Badge {...command.badge} />}
</SearchSuggestionItem>
))}
</>

View File

@@ -122,7 +122,7 @@ export const Search = ({
formRef={searchBoxRef}
/>
<Button
variant="clear"
variant="transparent"
className={clsx(
"bg-medusa-bg-base block md:hidden",
"border-0 border-solid",