1
0
Fork 0

feat(DocSearch): add DocSearch CSS class to DocSearch elements

This commit is contained in:
François Chalifour 2020-07-22 10:36:51 +02:00
parent 8588b965e9
commit 26bc858de6
2 changed files with 7 additions and 1 deletions

View file

@ -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>

View file

@ -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',