Skip to content

Commit

Permalink
fix(docsearch): rename DocSearch-Button CSS class
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Jul 22, 2020
1 parent 2b2cbcf commit 8588b96
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/DocSearchButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,14 @@ export const DocSearchButton = React.forwardRef<
}, []);

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

<span className="DocSearch-SearchButton-Key">
<span className="DocSearch-Button-Key">
{key === ACTION_KEY_DEFAULT ? <ControlKeyIcon /> : key}
</span>
<span className="DocSearch-SearchButton-Key">K</span>
<span className="DocSearch-Button-Key">K</span>
</button>
);
});

0 comments on commit 8588b96

Please sign in to comment.