diff --git a/packages/paste-website/src/components/site-search/SearchForm.tsx b/packages/paste-website/src/components/site-search/SearchForm.tsx index 14fa795468..f68dfd39f4 100644 --- a/packages/paste-website/src/components/site-search/SearchForm.tsx +++ b/packages/paste-website/src/components/site-search/SearchForm.tsx @@ -57,7 +57,7 @@ const SearchForm: React.FC> = ({ type="text" id={inputID} name="search-input" - placeholder="Enter a question or keyword" + placeholder={'Try "button" or "what is a design token?"'} value={inputValue} onChange={onChange} data-cy="paste-docsearch-input" diff --git a/packages/paste-website/src/components/site-search/SearchResultDocs.tsx b/packages/paste-website/src/components/site-search/SearchResultDocs.tsx index c68291b740..9eb6a9cbe3 100644 --- a/packages/paste-website/src/components/site-search/SearchResultDocs.tsx +++ b/packages/paste-website/src/components/site-search/SearchResultDocs.tsx @@ -50,19 +50,15 @@ export const SearchResultDocs: React.FC<{ searchItem: SearchItem }> = ({ searchI href={`${searchItem.meta.slug}#${searchItem.slug}`} paddingY="space30" paddingX="space40" + borderRadius="borderRadius30" outline="none" - borderLeftWidth="borderWidth20" - borderLeftStyle="solid" - borderLeftColor="transparent" _hover={{ color: "colorTextPrimary", backgroundColor: "colorBackgroundPrimaryWeakest", - borderColor: "colorBorderPrimary", }} _focus={{ color: "colorTextPrimary", backgroundColor: "colorBackgroundPrimaryWeakest", - borderColor: "colorBorderPrimary", }} > = ({ title, p padding="space20" > - - + + {title} @@ -39,12 +39,28 @@ const DiscussionHeading: React.FC<{ title: string; path: string }> = ({ title, p ); }; -const DocumentationHeading: React.FC<{ title: string }> = ({ title }) => { +const DocumentationHeading: React.FC<{ title: string; slug: string }> = ({ title, slug }) => { return ( - + - - {title} + + + + {sentenceCase(slug.split("/")[1])} + + + {title} + + ); @@ -70,20 +86,15 @@ const SearchResultsList: React.FC = ({ results }) => { {resultType === "github-discussions" ? ( ) : ( - + )} {resultParent.description && ( - + {resultParent.description} )} - {resultParent.slug && ( - - {sentenceCase(resultParent.slug.split("/")[1])} - - )} {resultType === "markdown" && ( - + {resultSections.map((result) => { return (