Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
feat(DocSearch): add DocSearch CSS class to DocSearch elements
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Jul 22, 2020
1 parent f3a5449 commit 0e93615
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/docsearch-react/src/DocSearchButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ export const DocSearchButton = React.forwardRef<
}, []);

return (
<button type="button" className="DocSearch-Button" {...props} ref={ref}>
<button
type="button"
className="DocSearch DocSearch-Button"
{...props}
ref={ref}
>
<SearchIcon />
<span className="DocSearch-Button-Placeholder">Search</span>

Expand Down
1 change: 1 addition & 0 deletions packages/docsearch-react/src/DocSearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ export function DocSearchModal({
'aria-expanded': true,
})}
className={[
'DocSearch',
'DocSearch-Container',
state.status === 'stalled' && 'DocSearch-Container--Stalled',
state.status === 'error' && 'DocSearch-Container--Errored',
Expand Down

0 comments on commit 0e93615

Please sign in to comment.