Skip to content

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 8588b96 commit 26bc858
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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 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 26bc858

Please sign in to comment.