Skip to content

Commit 26bc858

Browse files
feat(DocSearch): add DocSearch CSS class to DocSearch elements
1 parent 8588b96 commit 26bc858

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/DocSearchButton.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ export const DocSearchButton = React.forwardRef<
3232
}, []);
3333

3434
return (
35-
<button type="button" className="DocSearch-Button" {...props} ref={ref}>
35+
<button
36+
type="button"
37+
className="DocSearch DocSearch-Button"
38+
{...props}
39+
ref={ref}
40+
>
3641
<SearchIcon />
3742
<span className="DocSearch-Button-Placeholder">Search</span>
3843

src/DocSearchModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ export function DocSearchModal({
331331
'aria-expanded': true,
332332
})}
333333
className={[
334+
'DocSearch',
334335
'DocSearch-Container',
335336
state.status === 'stalled' && 'DocSearch-Container--Stalled',
336337
state.status === 'error' && 'DocSearch-Container--Errored',

0 commit comments

Comments
 (0)