feat(DocSearch): add DocSearch CSS class to DocSearch elements
This commit is contained in:
parent
8588b965e9
commit
26bc858de6
2 changed files with 7 additions and 1 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue